Rest parameters of functions in Typescript

| Tag typescript  functions 

A function can have at most one rest parameter, and that parameter has to be the last one in the function’s parameter list.

function log(message: string, ...optionalParams: any[]){}

Prev     Next