Travis build: 425

This commit is contained in:
30secondsofcode
2018-09-10 05:32:36 +00:00
parent ae93f61975
commit 3da9f8e40d
2 changed files with 2 additions and 2 deletions

View File

@ -7084,7 +7084,7 @@ Creates an object from the given key-value pairs.
Use `Array.reduce()` to create and combine key-value pairs.
```js
const objectFromPairs = arr => arr.reduce((a, v) => ((a[v[0]] = v[1]), a), {});
const objectFromPairs = arr => arr.reduce((a, [key, val]) => ((a[key] = val), a), {});
```
<details>