Objects, collections and copying
Choose the right collection and copy data correctly.
- JS.06.01Property descriptors, freeze and sealMid-levelBeing written
- JS.06.02Map, Set, WeakMap, WeakSet, WeakRefCoreMid-level10 min
- JS.06.03Shallow vs deep copyCoreJunior9 min
- JS.06.04Immutability patternsMid-levelBeing written
Interview questions in this module
- When would you use a Map instead of a plain object?
- What is a WeakMap and when is it useful?
- What is the difference between a shallow and a deep copy? How do you deep copy?
- What does
structuredClonenot support? - Does
Object.freezemake an object deeply immutable? - In what order are object keys iterated?