Merge pull request #105 from kingdavidmartins/update-last-of-list

update last-of-list & ran npm run build-list
This commit is contained in:
Angelos Chalaris
2017-12-14 10:52:40 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
### Last of list
Return `arr.slice(-1)[0]`.
Use `arr.slice(-1)[0]` to get the last element of the given array.
```js
const last = arr => arr.slice(-1)[0];