Checks if the value is in collection.
value
collection
Returns true if value is found, else false.
true
false
contains([1, 2, 3], 1)// truecontains([1, 2, 3], 1, 2)// falsecontains({ 'a': 1, 'b': 2 }, 1)// truecontains('abcd', 'bc')// true
find
The collection to inspect.
The value to search for.
Generated using TypeDoc
Checks if the
value
is incollection
.Returns
Returns
true
if value is found, elsefalse
.Example
See
find