filmov
tv
JS protip #2: Grabbing last items from an array
![preview_player](https://i.ytimg.com/vi/vuwUKKBWvdo/maxresdefault.jpg)
Показать описание
We frequently need to grab one or more items from the end of an array or string. It used to be kludgy, but things have changed!
00:00 - Intro
00:18 - Old school (slice)
01:16 - The caveat with the `[]` operator
02:06 - Going overboard with ES proxies
03:16 - The modern way with `at()`
03:45 - Bonus: `findLast()` and `findLastIndex()`
04:54 - Outro
Want to gain further mastery of JS, Node, npm...? Check out our other video courses and training classes: 😁
00:00 - Intro
00:18 - Old school (slice)
01:16 - The caveat with the `[]` operator
02:06 - Going overboard with ES proxies
03:16 - The modern way with `at()`
03:45 - Bonus: `findLast()` and `findLastIndex()`
04:54 - Outro
Want to gain further mastery of JS, Node, npm...? Check out our other video courses and training classes: 😁