mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 12:01:40 +08:00
DISABLE_THIRD_PARTY_CHECK=new npm module causes package-lock change We can get rid of a custom script and use ESLint for these rules. Additionally this means editors will highlight the issue in the editor. Change-Id: I552b52e7f07b4e7430b3f685dbc3b5fad36ffff2 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2052167 Reviewed-by: Paul Lewis <aerotwist@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
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; |