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 does ellipses do in JavaScript?

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 spread operator in ES6?

Leave a Reply

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