Travis build: 181

This commit is contained in:
30secondsofcode
2018-08-02 20:15:23 +00:00
parent 880789f370
commit 8c04af3ab5
3 changed files with 3 additions and 6 deletions

View File

@ -6,8 +6,7 @@ Use `Array.reduce()` to loop over elements and store indices for matching elemen
Return the array of indices.
```js
const indexOfAll = (arr, val) =>
arr.reduce((acc, el, i) => (el === val ? [...acc, i] : acc), []);
const indexOfAll = (arr, val) => arr.reduce((acc, el, i) => (el === val ? [...acc, i] : acc), []);
```
```js