Sets In JS Make Working With Unique Arrays Fun

preview_player
Показать описание


🌎 Find Me Here:

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

Wow. That is magic. I’m gonna replace some needlessly complex code with that RIGHT NOW. 👍

robertholtz
Автор

Thanks for keeping us updated on new educational videos for programming languages, it’s hard to keep up in such a fast-changing field of study!!! 🎉

existence_zero
Автор

I love this guy. There’s nothing he can’t teach.

BrunoVinicius-ixwt
Автор

Funny seeing this video as I actually had a situation where I did this but just in Swift instead of JS. Needed unique values and converted the array to a Set then back again

makr.
Автор

The only catch here is that the value is no more a array.

GamingwithTTfires
Автор

Thank you I actually didn't not know about this

tukhtaevoff
Автор

Finally, the closer we get to C++ the better.

aenapoeka
Автор

The coolest thing about sets has to be that they provide amortized constant lookup, insertion and deletion time. Can be useful in terms of boosting performance of your app :)

rhodesiaFarmer
Автор

sets are pretty useful but I don't see myself using it. it's nice to see that they're available tho

beinyourguard
Автор

Can't wait for the Set operations proposal goes through. Stuff like intersections and symmetric difference are so useful & annoying to implement today.

EmmaKAlexandra
Автор

For deleting items of an array there are many methods for the js array

CodingAqyanoos
Автор

Hi Kyle, you say that it is difficult to delete one element from the middle of array, but how about splice() method? Isn't it doing exactly that?

Btw. great job with your videos and shorts, one of your free tutorials helped me a lot to get me back into web-apps programming. Thanks!

MollarCZ
Автор

Can u bring an example With nested objects

marlonk
Автор

I found out that by use method remove is removing all nums '1' for example if is more than one :)

aligiiii
Автор

Bro your picture icon is covering more space, and super thanks icon is also covering console outputs.

TheAaditya
Автор

Dude, pls try again with array of objects :D :D :D

trynio
Автор

geez! I didn't know JavaScript have sets😅

hawiedawitt
Автор

How does sets work with JSON, Where we have array of objects instead array of primitives.

eswarprasad
Автор

Why did it become an object in the console.log?

maxs
Автор

How does it handle objects with all the same properties while some have equal values?

monyetbesar