source: node_modules/ramda-adjunct/es/isNotNilOrEmpty.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 816 bytes
RevLine 
[d24f17c]1import { complement } from 'ramda';
2import isNilOrEmpty from './isNilOrEmpty';
3
4/**
5 * Returns `false` if the given value is its type's empty value, `null` or `undefined`.
6 *
7 * @func isNotNilOrEmpty
8 * @memberOf RA
9 * @since {@link https://char0n.github.io/ramda-adjunct/2.18.0|v2.18.0}
10 * @category Type
11 * @sig * -> Boolean
12 * @param {*} val The value to test
13 * @return {boolean}
14 * @see {@link RA.isNilOrEmpty|isNilOrEmpty}
15 * @example
16 *
17 * RA.isNotNilOrEmpty([1, 2, 3]); //=> true
18 * RA.isNotNilOrEmpty([]); //=> false
19 * RA.isNotNilOrEmpty(''); //=> false
20 * RA.isNotNilOrEmpty(null); //=> false
21 * RA.isNotNilOrEmpty(undefined): //=> false
22 * RA.isNotNilOrEmpty({}); //=> false
23 * RA.isNotNilOrEmpty({length: 0}); //=> true
24 */
25var isNotNilOrEmpty = complement(isNilOrEmpty);
26export default isNotNilOrEmpty;
Note: See TracBrowser for help on using the repository browser.