starry.includes
v4.0.0
Published
Member of the starry suite—modular functions for iterable objects.
Downloads
10
Maintainers
Readme
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