Spread Operator

The spread operator allows you to expand elements in an iterable (e.g., array) into individual elements.

Snippet:

const newArray = [...oldArray];

Example:

const newObject = { ...oldObject };