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