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.
Glossary: Software Design Patterns in JavaScript
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.