includes()
includes<
T
>(x
): (arr
) =>boolean
Determines whether the given array includes and element. Uses strict equality.
Type Parameters
T
T
The type of array elements.
Parameters
x
T
The value to find in the array.
Returns
(
arr
):boolean
Parameters
arr
T
[]
Returns
boolean
Remarks
pure function
Example
import { includes } from '@accelint/core';
includes(3)([1, 2, 3, 4, 5]);
// true