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
|
Line | |
---|
1 | var isNil =
|
---|
2 | /*#__PURE__*/
|
---|
3 | require("./isNil.js");
|
---|
4 |
|
---|
5 | var _curry1 =
|
---|
6 | /*#__PURE__*/
|
---|
7 | require("./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 |
|
---|
27 | var isNotNil =
|
---|
28 | /*#__PURE__*/
|
---|
29 | _curry1(function isNotNil(x) {
|
---|
30 | return !isNil(x);
|
---|
31 | });
|
---|
32 |
|
---|
33 | module.exports = isNotNil; |
---|
Note:
See
TracBrowser
for help on using the repository browser.