Skip to content

Glossary: TypeScript Basics

rest parameter

Also written: ...prices

A function parameter written with `...` that collects extra arguments into an array, so its type is an array type like `number[]`.

Where the book teaches it

Related terms

array type (T[])parameter