Skip to content

Glossary: Software Design Patterns in JavaScript

Spread syntax

Also written: spread, ...

The ... syntax that copies an object's or array's fields into a new one. { ...weekly, qty: 20 } copies the order and overrides qty, leaving the original alone.

Where the book teaches it

Related terms

PrototypestructuredClone