ramda-extension
Version:
Helpful functions built on top of the mighty Ramda
30 lines (27 loc) • 678 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _ramda = require("ramda");
/**
* Returns true if the given value is not its type's empty value
*
* @func
* @category Logic
*
* @sig a -> Boolean
*
* @example
*
* R_.isNotEmpty([1, 2, 3]); // true
* R_.isNotEmpty([]); // false
* R_.isNotEmpty(''); // false
* R_.isNotEmpty(null); // true
* R_.isNotEmpty({}); // false
* R_.isNotEmpty({length: 0}); // true
*
*/
var isNotEmpty = (0, _ramda.complement)(_ramda.isEmpty);
var _default = isNotEmpty;
exports.default = _default;