UNPKG

556 BJavaScriptView Raw
1import _curry1 from "./internal/_curry1.js";
2/**
3 * Checks if the input value is `null` or `undefined`.
4 *
5 * @func
6 * @memberOf R
7 * @since v0.9.0
8 * @category Type
9 * @sig * -> Boolean
10 * @param {*} x The value to test.
11 * @return {Boolean} `true` if `x` is `undefined` or `null`, otherwise `false`.
12 * @example
13 *
14 * R.isNil(null); //=> true
15 * R.isNil(undefined); //=> true
16 * R.isNil(0); //=> false
17 * R.isNil([]); //=> false
18 */
19
20var isNil =
21/*#__PURE__*/
22_curry1(function isNil(x) {
23 return x == null;
24});
25
26export default isNil;
\No newline at end of file