Checks if array has a value.
:package:
:smileycat:
:running:
:vhs:
:moon:
:scroll:
:newspaper:
:bluebook:
Similar: search, indexOf, isValue, includes.
This is part of package extra-array.
This is browserified, minified version of @extra-array/includes.
It is exported as global variable arrayincludes.
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