Sets in Javascript (Set Object)

Sets in Javascript (Set Object)

dcode

7 лет назад

30,515 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@hamzahahmad1670
@hamzahahmad1670 - 01.10.2019 00:53

I appreciate your concise and well explained tutorials. Underrated stuff. Thank you.

Ответить
@reddingtonraymond1129
@reddingtonraymond1129 - 19.03.2020 21:54

I don't why you have 17k subs. Your explanation is very organized and easy to understand. Truly underrated

Ответить
@AZAMKHAN-vl4lq
@AZAMKHAN-vl4lq - 05.04.2020 02:39

how can we find duplicate item in array by using set?

Ответить
@cervece41
@cervece41 - 16.04.2020 18:22

Nice video of a somewhat neglected JS feature, thanks Dom!

Ответить
@zvar144
@zvar144 - 22.05.2020 06:00

can't focus on what u saying, that keyboard sound is so annoying man

Ответить
@monolog1067
@monolog1067 - 06.06.2020 16:40

Should have perhaps shown what happens when adding duplicates to the set...

Ответить
@gabrielfono844
@gabrielfono844 - 18.06.2020 23:37

thanks

Ответить
@medAmineRg
@medAmineRg - 27.11.2020 19:10

well explained sir

Ответить
@ssahillppatell
@ssahillppatell - 23.12.2020 17:00

Theme name pleaseeeee??

Ответить
@limehouseblues
@limehouseblues - 08.03.2021 00:45

Like someone else said, you have a real gift for being concise, I really appreciate your approach!!!

Ответить
@rlyehdate
@rlyehdate - 18.04.2021 20:00

'HowBigIsMyset?' 6
... 6 what? 7u7

Haha... Jokes aside, this video is so appreciable, thanks for the explanation!

Ответить
@rlyehdate
@rlyehdate - 18.04.2021 20:04

Is there a method to turn an array into a set? Thanks in advance!

Ответить
@kofinartey116
@kofinartey116 - 13.06.2021 06:26

Learnt something new today. Thank sir

Ответить
@sarnendudas6285
@sarnendudas6285 - 31.07.2021 05:39

Sir ,new set is not working in my react project,shows "set not defined" what should I do?

Ответить
@johnconnor9787
@johnconnor9787 - 21.10.2021 15:55

cool

Ответить
@LiveEveryMoment_WithLOVE.
@LiveEveryMoment_WithLOVE. - 22.12.2021 08:32

No more search abt JS set, 10Q a lot dude, i really appreciate your work.👍

Ответить
@gifted1392
@gifted1392 - 08.02.2022 09:59

You saved a lot of my time via these concise explanations,thanksssssss a lot

Ответить
@asokthegreat7781
@asokthegreat7781 - 17.02.2022 10:50

Most underrated tutorial channel

Ответить
@T25de
@T25de - 24.02.2022 04:04

Thanks

Ответить
@psomas92
@psomas92 - 24.02.2022 09:14

Didn't know Korg could code!

Ответить
@npx_riff_lift-g
@npx_riff_lift-g - 08.06.2022 01:05

is it possible to loop through a set a specific number of times?

Ответить
@confident.decision
@confident.decision - 26.07.2022 12:59

Why did you use the keyword 'const' if you're doing changes to the set ?

Ответить
@penguinxed
@penguinxed - 12.09.2022 18:45

well explained sir! cheers

Ответить
@SlimShaunyy
@SlimShaunyy - 16.11.2022 01:27

Thank you for this tutorial. Came here because I was curious how the code:
[...new Set(arr)];
removed all duplicates from my passed array. Now I understand that the new Set(arr) is converting the array to a Set object, the ...spread syntax is removing the elements from that Set object and the [brackets] are inserting those values into an array.
I liked your solution of:
Array.from(new Set(arr))
for readability's sake.

Ответить
@BobbyBundlez
@BobbyBundlez - 06.12.2022 00:53

idk why Array.from(set_name) isn't working for me... it still console logs it as a set...

Ответить
@aloascreations4374
@aloascreations4374 - 15.04.2023 14:44

Great !!!! very simple to understand, thank you 👍

Ответить
@MAJORpiyush
@MAJORpiyush - 01.09.2023 12:49

bahut badhiya maja aagya mere bhai tune din bana diya

Ответить
@OneWingedRose
@OneWingedRose - 13.10.2023 08:23

Thanks for this!

Ответить