mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-14 02:24: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>
30 lines
928 B
JavaScript
30 lines
928 B
JavaScript
var _includes = /*#__PURE__*/require('./internal/_includes');
|
|
|
|
var _curry2 = /*#__PURE__*/require('./internal/_curry2');
|
|
|
|
/**
|
|
* Returns `true` if the specified value is equal, in [`R.equals`](#equals)
|
|
* terms, to at least one element of the given list; `false` otherwise.
|
|
* Works also with strings.
|
|
*
|
|
* @func
|
|
* @memberOf R
|
|
* @since v0.1.0
|
|
* @category List
|
|
* @sig a -> [a] -> Boolean
|
|
* @param {Object} a The item to compare against.
|
|
* @param {Array} list The array to consider.
|
|
* @return {Boolean} `true` if an equivalent item is in the list, `false` otherwise.
|
|
* @see R.any
|
|
* @example
|
|
*
|
|
* R.includes(3, [1, 2, 3]); //=> true
|
|
* R.includes(4, [1, 2, 3]); //=> false
|
|
* R.includes({ name: 'Fred' }, [{ name: 'Fred' }]); //=> true
|
|
* R.includes([42], [[42]]); //=> true
|
|
* R.includes('ba', 'banana'); //=>true
|
|
*/
|
|
|
|
|
|
var includes = /*#__PURE__*/_curry2(_includes);
|
|
module.exports = includes; |