Name | Last modified | Size | Description | |
---|---|---|---|---|
Parent Directory | - | |||
package.json | 2 years ago | 1.4K | 3e510ca test new git [كارل مبارك] | |
test.js | 11 years ago | 689 | ||
index.js | 11 years ago | 153 | 3e510ca test new git [كارل مبارك] | |
README.md | 11 years ago | 320 | d768d73 docs [كارل مبارك] | |
LICENSE | 11 years ago | 1.0K |
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