source: node_modules/ramda-adjunct/src/isNotNull.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: 546 bytes
Line 
1import { complement } from 'ramda';
2
3import isNull from './isNull';
4
5/**
6 * Checks if input value is complement of `null`.
7 *
8 * @func isNotNull
9 * @memberOf RA
10 * @since {@link https://char0n.github.io/ramda-adjunct/0.1.0|v0.1.0}
11 * @category Type
12 * @sig * -> Boolean
13 * @param {*} val The value to test
14 * @return {boolean}
15 * @see {@link RA.isNull|isNull}
16 * @example
17 *
18 * RA.isNotNull(1); //=> true
19 * RA.isNotNull(undefined); //=> true
20 * RA.isNotNull(null); //=> false
21 */
22const isNotNull = complement(isNull);
23
24export default isNotNull;
Note: See TracBrowser for help on using the repository browser.