Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
xzx 2ec7739298 [Version] V.3.8 před 4 roky
..
.npmignore [Version] V.3.8 před 4 roky
LICENSE [Version] V.3.8 před 4 roky
README.md [Version] V.3.8 před 4 roky
index.js [Version] V.3.8 před 4 roky
package.json [Version] V.3.8 před 4 roky
test.js [Version] V.3.8 před 4 roky

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