Updated linter to work with restructure

This commit is contained in:
Angelos Chalaris
2017-12-27 17:05:21 +02:00
parent fa07effb84
commit e08dd40e4e
33 changed files with 52 additions and 51 deletions

View File

@ -5,7 +5,7 @@ Given an array of valid property identifiers and an array of values, return an o
Since an object can have undefined values but not undefined property pointers, the array of properties is used to decide the structure of the resulting object using `Array.reduce()`.
```js
const zipObject = ( props, values ) => props.reduce( ( obj, prop, index ) => ( obj[prop] = values[index], obj ), {} )
const zipObject = (props, values) => props.reduce((obj, prop, index) => (obj[prop] = values[index], obj), {});
```
```js