@@ -8,6 +8,7 @@ import { isNil, either, isEmpty, complement } from 'ramda';
8
8
* isNilOrEmpty({}); // -> true
9
9
* isNilOrEmpty(null); // -> true
10
10
* isNilOrEmpty([]); // -> true
11
+ * isNilOrEmpty(''); // -> true
11
12
* isNilOrEmpty([42]); // -> false
12
13
*
13
14
* @function
@@ -27,6 +28,7 @@ export const isNilOrEmpty = either(isEmpty, isNil);
27
28
* isNotNilOrEmpty({}); // -> false
28
29
* isNotNilOrEmpty(null); // -> false
29
30
* isNotNilOrEmpty([]); // -> false
31
+ * isNotNilOrEmpty(''); // -> false
30
32
* isNotNilOrEmpty([42]); // -> true
31
33
*
32
34
* @function
@@ -46,6 +48,7 @@ export const isNotNilOrEmpty = complement(isNilOrEmpty);
46
48
* isNotNil(null); // -> false
47
49
* isNotNil([42]); // -> true
48
50
* isNotNil(undefined); // -> false
51
+ * isNotNil(''); // -> true
49
52
*
50
53
* @function
51
54
* @see https://ramdajs.com/docs/#isNil
@@ -64,6 +67,7 @@ export const isNotNil = complement(isNil);
64
67
* isNotEmpty(undefined); // -> true
65
68
* isNotEmpty([]); // -> false
66
69
* isNotEmpty([42]); // -> true
70
+ * isNotEmpty(''); // -> false
67
71
*
68
72
* @function
69
73
* @see https://ramdajs.com/docs/#isEmpty
0 commit comments