JavaScript ES6 Sets and WeakSets

preview_player
Показать описание
Learn how to use Sets and WeakSets in JavaScript ES6. A Set is a new collection in JavaScript which allows you to store unique values/objects within it. A weakSet is another collection that can only store objects within it but holds a "weak" reference to objects. If those objects no longer exist it will return false when calling the has method.
Рекомендации по теме
Комментарии
Автор

You literally didnt show the difference between set and weakset. I know the difference and had issues understanding what are you saying there

Booyamakashi