Show Buttons
Share On Facebook
Share On Twitter
Share On Google Plus
Share On Linkdin
Share On Reddit
Share On Stumbleupon
Contact us
Hide Buttons

Es6 Spread operator

A spread operator allows an expressions to be expanded.

It allows the elements of an array to be expanded, so you do not have to loop over all the array elements in the function. In this post, we will see few practical use cases for the spread operator.

An array to be expanded as multiple arguments to the function