Updated linter to work with restructure
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user