Glossary Term
Array.prototype.includes()
The includes() method of Array instances determines whether an array includes a certain value among its entries, returning true or false as appropriate.
The includes() method compares searchElement to elements of the array using the SameValueZero algorithm. This algorithm works like strict equality === (where -0 and +0 are considered equal), with the exception that NaN is considered equal to itself.
When used on sparse arrays, the includes() method iterates empty slots as if they have the value undefined.
The includes() method is generic. It only expects the this value to have a length property and integer-keyed properties.
Syntax example: includes(searchElement)
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
