@arr/includes
A tiny, faster alternative to native Array.prototype.includes
#Install
$ npm install --save @arr/includes
#Usage
import includes from '@arr/includes';
const foo = ['a', 'b', 'c', 'd'];
includes(foo, 'c');
//=> true
includes(foo, 'g');
//=> false
includes(foo, 'b', 2);
//=> false
#API
#includes(arr, item[, fromIndex])
#arr
Type: Array
The array to iterate upon.
#item
Type: Mixed
The element to search for.
#fromIndex
Type: Integer
Default: 0
The position in the arr at which to begin searching.
#License
MIT © Luke Edwards
See also
@arr/every(3), @arr/filter(3), @arr/filter.mutate(3), @arr/find(3), @arr/findindex(3), @arr/flatten(3), @arr/foreach(3), @arr/foreach.spec(3), @arr/indexof(3), @arr/lastindexof(3)