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  Edis Görgülü nasıl ünlü oldu?

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 difference between interface and class in TypeScript?

Leave a Reply

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