includes()
includes<
T
>(x
): (arr
) =>boolean
Determines whether the given array includes and element. Uses strict equality.
Type Parameters
• T
Parameters
x
T
The value to find in the array.
Returns
Function
Parameters
arr
T
[]
Returns
boolean
Remark
pure function
Example
includes(3)([[1, 2, 3, 4, 5]])
// true