index-of
Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.
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.
optimized indexof for a known property
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.
Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.
Functions that return indexes of items in an array. Optional arguments give you more flexibility than Array.prototype.indexOf()