Returns whether the given array includes the given element
Optional
The array to check
The element to compare
whether the given array includes the given element
David Hsing
includes(['foo', 'bar'], 'foo'); // true Copy
includes(['foo', 'bar'], 'foo'); // true
Returns whether the given array includes the given element