Another awesome addition to JavaScript in ES14 (ECMAScript 2023), we get the toSpliced method. Yes, pretty close to toReveresed and toSorted! It works just like .splice() but instead of mutating the array and returning the deleted elements, it returns the array after deletion and insertion. This is a quick but worthwhile update. Don't forget to hit subscribe and get all the updates to JavaScript!
Code: https://github.com/robertbunch/es-next
History of ECMAScript/JavaScript (long) - • Visual Timeline of JavaScript and ECM...
History of ECMAScript/JavaScript (shorter) - • Visual Timeline of JavaScript and ECM...
0:00 - Intro
0:33 - toSpliced() and splice() docs
2:53 - Code example
4:51 - Other notes from the docs (sparse, generic)
Watch video The .toSpliced() method - Unleash the Power of JavaScript Updates online without registration, duration hours minute second in high quality. This video was added by user Good Morning Developers 23 April 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 20 once and liked it 1 people.