Updated linter to work with restructure

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

View File

@ -7,7 +7,7 @@ If the index is out of bounds, return `[]`.
Omit the second argument, `n`, to get the first element of the array.
```js
const nthElement = (arr, n=0) => (n>0? arr.slice(n,n+1) : arr.slice(n))[0];
const nthElement = (arr, n = 0) => (n > 0 ? arr.slice(n, n + 1) : arr.slice(n))[0];
```
```js