Determines whether a typed array includes a certain element.
includes(element, startIndex?)
element
The element to search for.
startIndex optional
The index in the array at which to begin searching.
Returns true if the array contains the element, false if it doesn’t.
new Uint8Array([1, 2, 3]).includes(1)
true
new Uint8Array([1, 2, 3]).includes(42)
false