Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
320 B
25 lines
320 B
1 year ago
|
# indexes-of
|
||
|
|
||
|
like Array/String#indexOf but return all the indexes in an array.
|
||
|
|
||
|
``` js
|
||
|
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
|