UNPKG

@zkochan/pnpm

Version:

Fast, disk space efficient package manager

37 lines (30 loc) 1.12 kB
var _complement = /*#__PURE__*/require('./internal/_complement'); var _curry2 = /*#__PURE__*/require('./internal/_curry2'); var _dispatchable = /*#__PURE__*/require('./internal/_dispatchable'); var _xany = /*#__PURE__*/require('./internal/_xany'); var any = /*#__PURE__*/require('./any'); /** * Returns `true` if no elements of the list match the predicate, `false` * otherwise. * * Dispatches to the `any` method of the second argument, if present. * * @func * @memberOf R * @since v0.12.0 * @category List * @sig (a -> Boolean) -> [a] -> Boolean * @param {Function} fn The predicate function. * @param {Array} list The array to consider. * @return {Boolean} `true` if the predicate is not satisfied by every element, `false` otherwise. * @see R.all, R.any * @example * * var isEven = n => n % 2 === 0; * var isOdd = n => n % 2 === 1; * * R.none(isEven, [1, 3, 5, 7, 9, 11]); //=> true * R.none(isOdd, [1, 3, 5, 7, 8, 11]); //=> false */ var none = /*#__PURE__*/_curry2( /*#__PURE__*/_complement( /*#__PURE__*/_dispatchable(['any'], _xany, any))); module.exports = none;