Search npm for packages to use with Deno
Add them to your projects with a simple command that will already feel familar.
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-convert-index-of-to-includes
🐊Putout plugin adds ability to convert indexOf to includes
in-array
Return true if a value exists in an array. Faster than using indexOf and won't blow up on null values.
quiaexercitationem
Get the index of the first element in an array that returns truthy for the given value, using strict equality for comparisons.
@writetome51/array-get-indexes-of
Functions that return indexes of items in an array. Optional arguments give you more flexibility than Array.prototype.indexOf()
@jswork/next-regex-index-of
JavaScript's String.indexOf() that allows for regular expressions.
is-array-elem
Checks if value is found in array
last-index-of
Get the index of the last element in an array that returns truthy for the given value, using strict equality for comparisons.
indices-of
Like indexOf, but gets all matching indices