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