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:
841 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports["default"] = void 0;
|
---|
5 | var _ramda = require("ramda");
|
---|
6 | /**
|
---|
7 | * Returns true if the given value is not its type's empty value; `false` otherwise.
|
---|
8 | *
|
---|
9 | * @func isNotEmpty
|
---|
10 | * @memberOf RA
|
---|
11 | * @since {@link https://char0n.github.io/ramda-adjunct/0.4.0|v0.4.0}
|
---|
12 | * @category Logic
|
---|
13 | * @sig * -> Boolean
|
---|
14 | * @param {*} val The value to test
|
---|
15 | * @return {boolean}
|
---|
16 | * @see {@link http://ramdajs.com/docs/#isEmpty|R.isEmpty}
|
---|
17 | * @example
|
---|
18 | *
|
---|
19 | * RA.isNotEmpty([1, 2, 3]); //=> true
|
---|
20 | * RA.isNotEmpty([]); //=> false
|
---|
21 | * RA.isNotEmpty(''); //=> false
|
---|
22 | * RA.isNotEmpty(null); //=> true
|
---|
23 | * RA.isNotEmpty(undefined): //=> true
|
---|
24 | * RA.isNotEmpty({}); //=> false
|
---|
25 | * RA.isNotEmpty({length: 0}); //=> true
|
---|
26 | */
|
---|
27 | var isNotEmpty = (0, _ramda.complement)(_ramda.isEmpty);
|
---|
28 | var _default = isNotEmpty;
|
---|
29 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.