index-of
Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.
Found 9 results for index-of
Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.
🐊Putout plugin adds ability to convert indexOf to includes
Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.
Functions that return indexes of items in an array. Optional arguments give you more flexibility than Array.prototype.indexOf()
Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.
Checks if value is found in array
Get the index of the last element in an array that returns truthy for the given value, using strict equality for comparisons.
Like indexOf, but gets all matching indices
JavaScript's String.indexOf() that allows for regular expressions.