The .at() method - Unleash the Power of JavaScript Updates

Опубликовано: 20 Февраль 2024
на канале: Good Morning Developers
964
37

There's nothing convenient about changing to it, but a must use feature in ECMAScript 2022 is the .at() method! How is "at" different than charAt? Or how is it different than bracket notation? Why would you want to use it? (If you are coming from Python or R you will be very excited) .Join Rob on Javascript Tuesday as he delves into the advantages of using .at() for arrays and strings over bracket notation, slice, and charAt(). Say goodbye to cumbersome coding with .at() and start writing better JavaScript today! Don't forget to subscribe for more insightful updates on ECMAScript and JavaScript improvements.

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...  
ES playlist: EcmaScript Updates:    • EcmaScript Updates  


0:00 - Introduction
0:40 - What is the point of this...
2:00 - The Docs (and the point)
3:30 - Negative indices that work!
4:00 - Goodbye .length - 1
5:50 - Use it!


Смотрите видео The .at() method - Unleash the Power of JavaScript Updates онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Good Morning Developers 20 Февраль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 964 раз и оно понравилось 37 людям.