What do the spread and rest operators do?

The rest operator (…) allows us to call a function with any number of arguments and then access those excess arguments as an array . The rest operator also allows us in destructuring array or objects. The spread operator (…) allows us to expand an iterable like array into its individual elements.

Sizin İçin Seçtik  What do 3 dots mean in JavaScript?

Leave a Reply

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