0

I confused between Set, Map, WeakSet and WeakMap because from each one of this we can add and delete items from list and also we can show data from the list by using either one.

What should I use and When? Please assist me.

w00
  • 26,172
  • 30
  • 101
  • 147
Gorakh Nath
  • 9,140
  • 15
  • 46
  • 68
  • 1
    Do you want to know the difference between a set and a map or do you want to know what weak means in this context? – a better oliver Feb 08 '17 at 10:48
  • @zeroflagL WeakSet(),WeakMap() are two another method of ES6, I want to know the difference between them – Gorakh Nath Feb 08 '17 at 10:50
  • 2
    Isn't the documentation, especially the point "Why Weak-Map" clear enough? https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Global_Objects/WeakMap – baao Feb 08 '17 at 10:53

0 Answers0