Question PRG-JS-0079
HardWhat is a WeakMap useful for?
- A.
Faster iteration
- B.
Storing primitives as keys
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
JavaScript question
What is a WeakMap useful for?
Faster iteration
Storing primitives as keys
Sign up free to see the answer and a step-by-step explanation.
Sorting keys
Associating data with objects without preventing those objects from being garbage-collected