README
array-containsit
NOTE: array-containsit was renamed to @extra-array/contains.
Check if an array contains another array.
const containsIt = require('array-containsit');
// containsIt(<array1>, <array2>, [begin1=0], [end1], [begin2=0], [end2])
var a = ['b', 'l', 'i', 's', 's'];
var b = ['f', 'i', 's', 'h'];
containsIt(a, b);
// false (bliss ![c] fish)
containsIt(a, b, 1);
// false (liss ![c] fish)
containsIt(a, b, 1, 4);
// false (lis ![c] fish)
containsIt(a, b, 1, 4, 1);
// false (lis ![c] ish)
containsIt(a, b, 1, 4, 1, 3);
// true (lis [c] is)