source: node_modules/ramda-adjunct/src/isNotNil.js@ d24f17c

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

Initial commit

  • Property mode set to 100644
File size: 582 bytes
Line 
1import { isNil, complement } from 'ramda';
2
3/**
4 * Checks if input value is complement of `null` or `undefined`.
5 *
6 * @func isNotNil
7 * @memberOf RA
8 * @since {@link https://char0n.github.io/ramda-adjunct/0.3.0|v0.3.0}
9 * @category Type
10 * @sig * -> Boolean
11 * @param {*} val The value to test
12 * @return {boolean}
13 * @see {@link http://ramdajs.com/docs/#isNil|R.isNil}
14 * @example
15 *
16 * RA.isNotNil(null); //=> false
17 * RA.isNotNil(undefined); //=> false
18 * RA.isNotNil(0); //=> true
19 * RA.isNotNil([]); //=> true
20 */
21const isNotNil = complement(isNil);
22
23export default isNotNil;
Note: See TracBrowser for help on using the repository browser.