Skip to content

has

has(array, value)

Returns true if array contains value, otherwise returns false.

ts
has([1, 2, 3, 4], 3); // true
ts
pipe([1, 2, 3, 4], has(3)); // true