|
|
před 3 roky | |
|---|---|---|
| .. | ||
| .npmignore | před 3 roky | |
| LICENSE | před 3 roky | |
| README.md | před 3 roky | |
| index.js | před 3 roky | |
| package.json | před 3 roky | |
| test.js | před 3 roky | |
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]
MIT