|
|
3 年 前 | |
|---|---|---|
| .. | ||
| .npmignore | 3 年 前 | |
| LICENSE | 3 年 前 | |
| README.md | 3 年 前 | |
| index.js | 3 年 前 | |
| package.json | 3 年 前 | |
| test.js | 3 年 前 | |
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