Spread and Rest

Assigning an object to a new variable doesn't copy it, so this lesson shows how spread makes real copies and merges, and how rest gathers any number of values into one.

Updated

Cheat sheet: Spread and Rest
Category
JavaScript
Level
Apprentice
Tags
Immutability, JavaScript, Rest Parameter, Shallow Copy (javascript), Spread Syntax, structuredClone()