Duration
1 min
Access
Free
Transcript
Needs source

Use the spread operator to copy a flat object. Note that this is a shallow copy.