isIn()
isIn<
T
>(a
): (b
) =>boolean
Determines if the value is in the provided array.
Type Parameters
• T
The type of the value/array.
Parameters
a
T
[]
The array to check for the value in.
Returns
Function
Parameters
b
T
Returns
boolean
Remarks
pure function
Example
isIn([58, 93, 29, 23])(23); // true
isIn([58, 93, 29, 123])(23); // false