2023-12-21 | 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 Please enable JavaScript to view isso comment contents。