Travis build: 1868

This commit is contained in:
30secondsofcode
2020-04-15 15:35:47 +00:00
parent a8ff9bd9cc
commit 66fbafd0db
13 changed files with 94 additions and 101 deletions

View File

@ -9,7 +9,8 @@ Use `Array.prototype.reduce()` to apply `fn` to each element in `arr` and combin
Use `el` as the key for each property and the result of `fn` as the value.
```js
const mapObject = (arr, fn) =>
const mapObject = (arr, fn) =>
arr.reduce((acc, el, i) => {
acc[el] = fn(el, i, arr);
return acc;