Glossary: Coding Interviews in JavaScript
Spread syntax (...)
Also written: spread, spread operator
The `...` in JavaScript spreads an array's items out one by one, as in `[...tickets]` to copy an array or `push(...rest)` to add many items at once.
Glossary: Coding Interviews in JavaScript
Also written: spread, spread operator
The `...` in JavaScript spreads an array's items out one by one, as in `[...tickets]` to copy an array or `push(...rest)` to add many items at once.