4.0.0 • Published 7 years ago
starry.includes v4.0.0
Member of the starry suite—modular functions for iterable objects.
Status
Applies to the whole suite.
Usage
function includes<T = any>(
iterable: Iterable<T>,
value: T
): boolean
Returns whether the value can be found in the iterable. Equality is determined using SameValueZero
.
Parameters:
- iterable -
Iterable<T>
- value -
T
Returns: boolean