Skip to content

Glossary: Building APIs with Node.js

Spread syntax (...)

Also written: spread, ...

JavaScript's `...` copies an object's fields or an array's values into another place. It can merge a patch over an old row, or pass an array as separate arguments such as SQL placeholder values.

Where the book teaches it

Related terms

Placeholder