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:
686 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports["default"] = void 0;
|
---|
5 | var _ramda = require("ramda");
|
---|
6 | /**
|
---|
7 | * Checks if input value is complement of `null` or `undefined`.
|
---|
8 | *
|
---|
9 | * @func isNotNil
|
---|
10 | * @memberOf RA
|
---|
11 | * @since {@link https://char0n.github.io/ramda-adjunct/0.3.0|v0.3.0}
|
---|
12 | * @category Type
|
---|
13 | * @sig * -> Boolean
|
---|
14 | * @param {*} val The value to test
|
---|
15 | * @return {boolean}
|
---|
16 | * @see {@link http://ramdajs.com/docs/#isNil|R.isNil}
|
---|
17 | * @example
|
---|
18 | *
|
---|
19 | * RA.isNotNil(null); //=> false
|
---|
20 | * RA.isNotNil(undefined); //=> false
|
---|
21 | * RA.isNotNil(0); //=> true
|
---|
22 | * RA.isNotNil([]); //=> true
|
---|
23 | */
|
---|
24 | var isNotNil = (0, _ramda.complement)(_ramda.isNil);
|
---|
25 | var _default = isNotNil;
|
---|
26 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.