Methods
(static) includes(array, any) → {boolean}
- Source:
- Since:
- 0.3.0
- See:
Return an function expecting a value and returning true if it is included in the provided array
Example
> includes([0, 1, 2], 2)
true
> includes([0, 1, 2], 3)
false
Parameters:
Name | Type | Description |
---|---|---|
array |
array | |
any |
* |
Returns:
- Type
- boolean