var _complement = /*#__PURE__*/require('./internal/_complement'); var _curry2 = /*#__PURE__*/require('./internal/_curry2'); var all = /*#__PURE__*/require('./all'); /** * Returns `true` if no elements of the list match the predicate, `false` * otherwise. * * Dispatches to the `all` method of the second argument, if present. * * Acts as a transducer if a transformer is given in list position. * * @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 * * const isEven = n => n % 2 === 0; * const 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(function none(fn, input) { return all(_complement(fn), input); }); module.exports = none;