@extra-array/includes.min
TypeScript icon, indicating that this package has built-in type declarations

2.10.19 • Public • Published

Checks if array has a value. 📦 😺 🏃 📼 🌔 📜 📰 📘

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 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


References

Readme

Keywords

Package Sidebar

Install

npm i @extra-array/includes.min

Weekly Downloads

116

Version

2.10.19

License

MIT

Unpacked Size

5 kB

Total Files

8

Last publish

Collaborators

  • wolfram77