This Simple Array Method Is Such A Nice Addition To JS

preview_player
Показать описание
🌎 Find Me Here:

#Shorts
Рекомендации по теме
Комментарии
Автор

Kyle proves again, its not about inventing the methods shown, but telling the programmers about it. Absolutely essential skills.

rushboy
Автор

i'm shocked I didn't know about this. Thanks Kyle, as always, you're the best

vasyaqwe
Автор

I was searching for something like this.
Thanks man.

dhananjaychoudhary
Автор

One thing to note is the support for 'at' in older browsers

__pranjalM
Автор

Much nicer to navigate through arrays thank you!!!

alanmccall
Автор

Your videos are always super informative. Always learn something from you that is really useful in day-to-day coding 👍🏻👍🏻

Powerful-Manifestor-
Автор

It's like list indexing in python. Finally, they are doing it. Always wanted to have python-like indexing and slicing in JS xD

sultanmuammad
Автор

Implementing our own at is good option.

pranupranav
Автор

Love this content, please keep it coming!

aVa
Автор

Very useful. Thx a lot for highlighting this.

Jade_Hanson
Автор

That's pretty good... I didn't know this array function exists. Thanks!

carmenbravo
Автор

when he showed .at(), at first i thought "cant you just use a regular index for that?" until he showed that negative numbers can be passed in too

intraced
Автор

one caveat is it cannot be used to set value, i.e arr.at(-1) = 1 will not be allowed.

freeidol
Автор

Subscribed. Thank you for this content. I hope you're covering Typescript as well

bahrozeali
Автор

Meanwhile Python lets you do the very same thing using normal brackets notation

tomershechner
Автор

I would have never known you could do that if not this video. I’ve always like Python better because it just lets you do this normally like any good language should but it’s good to know that JS kinda lets you do the same.

entrpy
Автор

new thing we added to our mind library

oussemabouyahia
Автор

What if the length was zero? Error or undefined? Is this the same behavior you would expect if you used length - 1?

LostnTranslation
Автор

Meanwhile kotlin: names.first(), names.last()

rudemption
Автор

This method is not supported for example on ios 14. And for some reason creat react app did not polyfill this method so website did not work on iphone

lowzyyy