/ stream.nieuweinstituut.nl / node_modules / indexes-of /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[   ]package.json2 years ago1.4K3e510ca test new git [كارل مبارك]
[   ]test.js11 years ago689  
[   ]index.js11 years ago153 3e510ca test new git [كارل مبارك]
[TXT]README.md11 years ago320 d768d73 docs [كارل مبارك]
[   ]LICENSE11 years ago1.0K 
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

License

MIT

Apache/2.4.38 (Debian) Server at www.karls.computer Port 80