source: node_modules/ramda-adjunct/lib/isNotNilOrEmpty.js

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
RevLine 
[d24f17c]1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6var _isNilOrEmpty = _interopRequireDefault(require("./isNilOrEmpty"));
7function _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 */
29var isNotNilOrEmpty = (0, _ramda.complement)(_isNilOrEmpty["default"]);
30var _default = isNotNilOrEmpty;
31exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.