What is rest parameter in TypeScript?

A rest parameter allows you a function to accept zero or more arguments of the specified type . In TypeScript, rest parameters follow these rules: A function has only one rest parameter. The rest parameter appears last in the parameter list. The type of the rest parameter is an array type.

Sizin İçin Seçtik  What do three dots above and below code mean?

Leave a Reply

Your email address will not be published. Required fields are marked *

What is rest parameter in TypeScript?

A rest parameter allows you a function to accept zero or more arguments of the specified type . In TypeScript, rest parameters follow these rules: A function has only one rest parameter. The rest parameter appears last in the parameter list. The type of the rest parameter is an array type.

Sizin İçin Seçtik  How do you pass arguments in TypeScript?

Leave a Reply

Your email address will not be published. Required fields are marked *