includes compares searchElement to the elements of the array, in ascending order, using the
The optional second argument fromIndex defaults to 0 (i.e. the whole array is searched). If it is greater than or equal to the length of the array,
When the includes method is called, the following steps are taken:
The length property of the includes method is
includes function is intentionally generic; it does not require that its includes method intentionally differs from the similar indexOf method in two ways. First, it uses the %TypedArray%.prototype.includes is a distinct function that implements the same algorithm as Array.prototype.includes as defined in
This function is not generic.
The length property of the includes method is
The initial value of the @@unscopables data property is an object created by the following steps:
"copyWithin", "entries", "fill", "find", "findIndex", "includes", "keys", "values", This property has the attributes { [[Writable]]:
The own property names of this object are property names that were not included as standard properties of Array.prototype prior to the ECMAScript 2015 specification. These names are ignored for with statement binding purposes in order to preserve the behaviour of existing code that might use one of these names as a binding in an outer scope that is shadowed by a with statement whose binding object is an Array object.