Checks if the given value is in the given array. Unlike includes, it performs a deeper equality check.
includes
isInArray(1, [1, 2, 3]); // true isInArray('wer', [1, 2, 3]); // false
The value to search for.
The array to search into.
Whether the value is in the array.
Generated using TypeDoc
Checks if the given value is in the given array. Unlike
includes
, it performs a deeper equality check.isInArray(1, [1, 2, 3]); // true isInArray('wer', [1, 2, 3]); // false