Change all snippets from var to const

This commit is contained in:
Jorge Gonzalez
2017-12-12 07:11:37 -05:00
parent 67f83c63d9
commit f4b2dc150e
33 changed files with 35 additions and 35 deletions

View File

@ -3,6 +3,6 @@
Use `map()` to create objects for each key-value pair, combine with `Object.assign()`.
```js
var objectFromPairs = arr =>
const objectFromPairs = arr =>
Object.assign(...arr.map( v => {return {[v[0]] : v[1]};} ));
```