update snippets 78 - 96
This commit is contained in:
committed by
Agamemnon Zorbas
parent
d0a8c3b238
commit
a7fe8cb9d6
@ -6,5 +6,8 @@ Use `arr.length - 1` to compute the index of the last element of the given array
|
||||
|
||||
```js
|
||||
const last = arr => arr[arr.length - 1];
|
||||
// last([1,2,3]) -> 3
|
||||
```
|
||||
|
||||
```js
|
||||
last([1,2,3]) -> 3
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user