source: node_modules/ramda/es/isNotNil.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: 627 bytes
Line 
1import isNil from "./isNil.js";
2import _curry1 from "./internal/_curry1.js";
3/**
4 * Checks if the input value is not `null` and not `undefined`.
5 *
6 * @func
7 * @memberOf R
8 * @since v0.29.0
9 * @category Type
10 * @sig * -> Boolean
11 * @param {*} x The value to test.
12 * @return {Boolean} `true` if `x` is not `undefined` or not `null`, otherwise `false`.
13 * @example
14 *
15 * R.isNotNil(null); //=> false
16 * R.isNotNil(undefined); //=> false
17 * R.isNotNil(0); //=> true
18 * R.isNotNil([]); //=> true
19 */
20
21var isNotNil =
22/*#__PURE__*/
23_curry1(function isNotNil(x) {
24 return !isNil(x);
25});
26
27export default isNotNil;
Note: See TracBrowser for help on using the repository browser.