inarray
Curried predicate which checks that a value exists in an array. Generally faster than
indexOf
across JS engines.
npm install inarray --save
You can also use Duo, Bower or download the files manually.
npm stats
API Example
Basic
var inarray = //=> true //=> false
Pointfree Style
var inarray = var include = 'a' 'c'//=> true
API
inarray(list, item)
arguments
list (array)
The list to search.item (*)
The item/value to search for.
returns
(boolean)
Whether given value exists in array.
Alternatives
Contributing
SEE: contributing.md