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[]`.
Also written: ...prices
A function parameter written with `...` that collects extra arguments into an array, so its type is an array type like `number[]`.