UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

22 lines (21 loc) 551 B
import { complement, isEmpty } from '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 = /*#__PURE__*/complement(isEmpty); export default isNotEmpty;