liukang b4b8ddf15d admin-vue 1 rok temu
..
.npmignore b4b8ddf15d admin-vue 1 rok temu
LICENSE b4b8ddf15d admin-vue 1 rok temu
README.md b4b8ddf15d admin-vue 1 rok temu
index.js b4b8ddf15d admin-vue 1 rok temu
package.json b4b8ddf15d admin-vue 1 rok temu
test.js b4b8ddf15d admin-vue 1 rok temu

README.md

indexes-of

like Array/String#indexOf but return all the indexes in an array.

var indexesOf = require('indexes-of')

var twosIndexes = indexesOf([1, 2, 3, 4, 5, 4, 3, 2, 1], 2)

console.log(twosIndexes)

// [1, 7]

Haiku

  • A 5 line module.
  • But the tests are 40 lines.
  • npm publish.

License

MIT