The .toReversed() method - Unleash the Power of JavaScript Updates
Vložit
- čas přidán 9. 07. 2024
- Another awesome addition to JavaScript in ES14 (ECMAScript 2023), we get the toReversed method. It works just like .reverse() but it doesn't mutate the array in place. This is a quick but worthwhile update. Don't forget to hit subscribe and get all the updates to JavaScript!
Code: github.com/robertbunch/es-next
History of ECMAScript/JavaScript (long) - • Visual Timeline of Jav...
History of ECMAScript/JavaScript (shorter) - • Visual Timeline of Jav...
0:00 - Intro
0:30 - toReversed() and reverse()
2:05 - Code example
3:37 - Other notes from the docs (sparse, generic) - Věda a technologie
Since I didn't find something to comment about, I just wanted to mention that in the video title you put .toReverse() instead of .toReversed() 😁
Thanks Rob!
Fixed. Thanks for the catch!