@extra-array/includes.min
v2.10.19
Published
Checks if array has a value.
Readme
Checks if array has a value. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
This is part of package extra-array.
This is browserified, minified version of @extra-array/includes. It is exported as global variable array_includes. CDN: unpkg, jsDelivr.
array.includes(x, v, [i]);
// x: an array
// v: search value
// i: start index (0)const array = require("extra-array");
var x = [1, 2, -3];
array.includes(x, 3);
// false
array.includes(x, -3);
// true