ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
35 lines (30 loc) • 1.06 kB
JavaScript
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = require("ramda");
var _isNilOrEmpty = _interopRequireDefault(require("./isNilOrEmpty"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Returns `true` if the given value is its type's empty value, `null` or `undefined`.
*
* @func isNotNilOrEmpty
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.18.0|v2.18.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNilOrEmpty|isNilOrEmpty}
* @example
*
* RA.isNotNilOrEmpty([1, 2, 3]); //=> true
* RA.isNotNilOrEmpty([]); //=> false
* RA.isNotNilOrEmpty(''); //=> false
* RA.isNotNilOrEmpty(null); //=> false
* RA.isNotNilOrEmpty(undefined): //=> false
* RA.isNotNilOrEmpty({}); //=> false
* RA.isNotNilOrEmpty({length: 0}); //=> true
*/
var isNotNilOrEmpty = (0, _ramda.complement)(_isNilOrEmpty["default"]);
var _default = isNotNilOrEmpty;
exports["default"] = _default;
;