项目原始demo,不改动
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
To repozytorium jest zarchiwizowane. Możesz wyświetlać pliki i je sklonować, ale nie możesz do niego przepychać zmian lub otwierać zgłoszeń/Pull Requestów.
 
 
 
 
xzx 2ec7739298 [Version] V.3.8 4 lat temu
..
.npmignore [Version] V.3.8 4 lat temu
LICENSE [Version] V.3.8 4 lat temu
README.md [Version] V.3.8 4 lat temu
index.js [Version] V.3.8 4 lat temu
package.json [Version] V.3.8 4 lat temu
test.js [Version] V.3.8 4 lat 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