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