Search results

9 packages found

Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.

published version 0.2.0, 10 years ago5 dependents licensed under $MIT
87,958

🐊Putout plugin adds ability to convert indexOf to includes

published version 2.0.1, 2 years ago1 dependents licensed under $MIT
49,078

Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.

published version 0.1.2, 9 years ago18 dependents licensed under $MIT
1,264

Functions that return indexes of items in an array. Optional arguments give you more flexibility than Array.prototype.indexOf()

published version 3.0.2, 3 years ago2 dependents licensed under $MIT
37

JavaScript's String.indexOf() that allows for regular expressions.

published version 1.0.3, 4 years ago0 dependents licensed under $MIT
26

Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.

published version 1.4.1, 10 months ago0 dependents licensed under $MIT
22

Checks if value is found in array

published version 1.0.2, 7 years ago1 dependents licensed under $MIT
11

Like indexOf, but gets all matching indices

published version 1.0.0, 7 years ago0 dependents licensed under $MIT
9

Get the index of the last element in an array that returns truthy for the given value, using strict equality for comparisons.

published version 0.1.0, 10 years ago0 dependents
6