1 | var _includes =
|
2 | /*#__PURE__*/
|
3 | require("./internal/_includes");
|
4 |
|
5 | var _curry2 =
|
6 | /*#__PURE__*/
|
7 | require("./internal/_curry2");
|
8 | /**
|
9 | * Returns `true` if the specified value is equal, in [`R.equals`](#equals)
|
10 | * terms, to at least one element of the given list; `false` otherwise.
|
11 | * Works also with strings.
|
12 | *
|
13 | * @func
|
14 | * @memberOf R
|
15 | * @since v0.26.0
|
16 | * @category List
|
17 | * @sig a -> [a] -> Boolean
|
18 | * @param {Object} a The item to compare against.
|
19 | * @param {Array} list The array to consider.
|
20 | * @return {Boolean} `true` if an equivalent item is in the list, `false` otherwise.
|
21 | * @see R.any
|
22 | * @example
|
23 | *
|
24 | * R.includes(3, [1, 2, 3]); //=> true
|
25 | * R.includes(4, [1, 2, 3]); //=> false
|
26 | * R.includes({ name: 'Fred' }, [{ name: 'Fred' }]); //=> true
|
27 | * R.includes([42], [[42]]); //=> true
|
28 | * R.includes('ba', 'banana'); //=>true
|
29 | */
|
30 |
|
31 |
|
32 | var includes =
|
33 | /*#__PURE__*/
|
34 | _curry2(_includes);
|
35 |
|
36 | module.exports = includes; |
\ | No newline at end of file |