A tiny, faster alternative to native
Array.prototype.includes
$ npm install --save @arr/includes
import includes from '@arr/includes';
const foo = ['a', 'b', 'c', 'd'];
includes(foo, 'c');
//=> true
includes(foo, 'g');
//=> false
includes(foo, 'b', 2);
//=> false
Type: Array
The array to iterate upon.
Type: Mixed
The element to search for.
Type: Integer
Default: 0
The position in the arr
at which to begin searching.
MIT © Luke Edwards