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:
1.0 KB
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports["default"] = void 0;
|
---|
5 | var _ramda = require("ramda");
|
---|
6 | var _isNilOrEmpty = _interopRequireDefault(require("./isNilOrEmpty"));
|
---|
7 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
---|
8 | /**
|
---|
9 | * Returns `false` if the given value is its type's empty value, `null` or `undefined`.
|
---|
10 | *
|
---|
11 | * @func isNotNilOrEmpty
|
---|
12 | * @memberOf RA
|
---|
13 | * @since {@link https://char0n.github.io/ramda-adjunct/2.18.0|v2.18.0}
|
---|
14 | * @category Type
|
---|
15 | * @sig * -> Boolean
|
---|
16 | * @param {*} val The value to test
|
---|
17 | * @return {boolean}
|
---|
18 | * @see {@link RA.isNilOrEmpty|isNilOrEmpty}
|
---|
19 | * @example
|
---|
20 | *
|
---|
21 | * RA.isNotNilOrEmpty([1, 2, 3]); //=> true
|
---|
22 | * RA.isNotNilOrEmpty([]); //=> false
|
---|
23 | * RA.isNotNilOrEmpty(''); //=> false
|
---|
24 | * RA.isNotNilOrEmpty(null); //=> false
|
---|
25 | * RA.isNotNilOrEmpty(undefined): //=> false
|
---|
26 | * RA.isNotNilOrEmpty({}); //=> false
|
---|
27 | * RA.isNotNilOrEmpty({length: 0}); //=> true
|
---|
28 | */
|
---|
29 | var isNotNilOrEmpty = (0, _ramda.complement)(_isNilOrEmpty["default"]);
|
---|
30 | var _default = isNotNilOrEmpty;
|
---|
31 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.