# 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.

![Cheat sheet: Spread and Rest](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/10/fa840bcdc2244945ab7b5da4baac7ac5.webp)

- Category: JavaScript
- Level: Apprentice
- Tags: Immutability, JavaScript, Rest Parameter, Shallow Copy (javascript), Spread Syntax, structuredClone()
- Updated: November 1, 2026

Source: https://www.ask-codey.com/cheat-sheets/javascript-unpacking-spread-and-rest-cheat-sheet
