0.1.1 • Published 6 years ago

array-includesit v0.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

array-includesit

NPM

Check if value is present in array, like Array.includes().

const includesIt = require('array-includesit');
// includesIt(<array>, <search value>, [begin=0], [end])

includesIt(['c', 'a', 'l', 'c'], 'c');
// true
includesIt(['c', 'a', 'l', 'c'], 'c', 1);
// true
includesIt(['c', 'a', 'l', 'c'], 'c', 1, 3);
// false
0.1.1

6 years ago

0.1.0

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago