Module 8 · Objects, Destructuring, Spread and JSON
The Contest and Interview Pack: Deep Equality, Deep Clone, Flattening and a Bug Gallery
ProReading
Interviewers love objects, because one short question shows whether a candidate holds the right picture. "Write a function that checks if two objects are equal." "Copy this object so that changing the copy never touches the original." "What does this print?" Each takes ten minutes if you know the shape of the answer, and an hour if you do not.
Checking what this lesson needs for you…
What is inside The Contest and Interview Pack: Deep Equality, Deep Clone, Flattening and a Bug Gallery
- Pattern 1: deep equality
- Pattern 2: deep clone without structuredClone
- Pattern 3: what does this print, with references
- Pattern 4: flattening a nested object
- Pattern 5: versions of an object without copying it
- Six interview questions