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 are spread operators?

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  What is the function of 3 dots?

Leave a Reply

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