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.
31 lines (28 loc) • 843 B
JavaScript
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = require("ramda");
/**
* Returns true if the given value is not its type's empty value; `false` otherwise.
*
* @func isNotEmpty
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.4.0|v0.4.0}
* @category Logic
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link http://ramdajs.com/docs/#isEmpty|R.isEmpty}
* @example
*
* RA.isNotEmpty([1, 2, 3]); //=> true
* RA.isNotEmpty([]); //=> false
* RA.isNotEmpty(''); //=> false
* RA.isNotEmpty(null); //=> true
* RA.isNotEmpty(undefined): //=> true
* RA.isNotEmpty({}); //=> false
* RA.isNotEmpty({length: 0}); //=> true
*/
var isNotEmpty = (0, _ramda.complement)(_ramda.isEmpty);
var _default = isNotEmpty;
exports["default"] = _default;
;