5434a82a4e00324099756426afa6090cfcc0412bd80a7a985e73d3e90c543139d76249a8001daedc833440abe3b57b5b30f504013c0b209dfeabeca44fc452 320 B

123456789101112131415161718192021222324
  1. # indexes-of
  2. like Array/String#indexOf but return all the indexes in an array.
  3. ``` js
  4. var indexesOf = require('indexes-of')
  5. var twosIndexes = indexesOf([1, 2, 3, 4, 5, 4, 3, 2, 1], 2)
  6. console.log(twosIndexes)
  7. // [1, 7]
  8. ```
  9. # Haiku
  10. * A 5 line module.
  11. * But the tests are 40 lines.
  12. * npm publish.
  13. ## License
  14. MIT