Travis build: 1093

This commit is contained in:
30secondsofcode
2018-01-08 21:30:56 +00:00
parent dedd2fdd0b
commit 21e4200e1f
2 changed files with 3 additions and 3 deletions

View File

@ -865,10 +865,10 @@ head([1, 2, 3]); // 1
### indexOfAll
Returns all indices of `val` in an array. If `val` never occurs, returns `[-1]`.
Returns all indices of `val` in an array. If `val` never occurs, returns `[]`.
Use `Array.forEach()` to loop over elements and `Array.push()` to store indices for matching elements.
Return `[-1]` if `length` of the array of indices is `0`, otherwise return the array of indices.
Return the array of indices.
```js
const indexOfAll = (arr, val) => {