Skip to content

Glossary: Algorithms Beyond the Basics in JavaScript

Spread / rest syntax (...)

Also written: ...args, spread, rest parameters

In a function's parameters, `...args` collects all the arguments into an array; written in a call or an array, it spreads an array back out into separate items. `memoize` uses both.

Where the book teaches it

Related terms

MemoizationClosure