indexes-of
like Array/String#indexOf but return all the indexes in an array.
var indexesOf =var twosIndexes =console// [1, 7]
Haiku
- A 5 line module.
- But the tests are 40 lines.
- npm publish.
License
MIT
like Array/String#indexOf but return all the indexes in an array.
var indexesOf =var twosIndexes =console// [1, 7]
MIT
npm i indexes-of
4,575,404
1.0.1
MIT