includes
compares searchElement to the elements of the array, in ascending order, using the SameValueZero algorithm, and if found at any position, returns When the includes
method is called, the following steps are taken:
"length"
)).The length
property of the includes
method is
%TypedArray%.prototype.includes
is a distinct function that implements the same algorithm as Array.prototype.includes
except that the "length"
. The implementation of the algorithm may be optimized with the knowledge that the
This function is not generic. If the
The length
property of the includes
method is