Skip to content

Commit df53013

Browse files
authored
docs: add empty string to examples (#144)
1 parent e6a113a commit df53013

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/is-nil-empty.js

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { isNil, either, isEmpty, complement } from 'ramda';
88
* isNilOrEmpty({}); // -> true
99
* isNilOrEmpty(null); // -> true
1010
* isNilOrEmpty([]); // -> true
11+
* isNilOrEmpty(''); // -> true
1112
* isNilOrEmpty([42]); // -> false
1213
*
1314
* @function
@@ -27,6 +28,7 @@ export const isNilOrEmpty = either(isEmpty, isNil);
2728
* isNotNilOrEmpty({}); // -> false
2829
* isNotNilOrEmpty(null); // -> false
2930
* isNotNilOrEmpty([]); // -> false
31+
* isNotNilOrEmpty(''); // -> false
3032
* isNotNilOrEmpty([42]); // -> true
3133
*
3234
* @function
@@ -46,6 +48,7 @@ export const isNotNilOrEmpty = complement(isNilOrEmpty);
4648
* isNotNil(null); // -> false
4749
* isNotNil([42]); // -> true
4850
* isNotNil(undefined); // -> false
51+
* isNotNil(''); // -> true
4952
*
5053
* @function
5154
* @see https://ramdajs.com/docs/#isNil
@@ -64,6 +67,7 @@ export const isNotNil = complement(isNil);
6467
* isNotEmpty(undefined); // -> true
6568
* isNotEmpty([]); // -> false
6669
* isNotEmpty([42]); // -> true
70+
* isNotEmpty(''); // -> false
6771
*
6872
* @function
6973
* @see https://ramdajs.com/docs/#isEmpty

0 commit comments

Comments
 (0)