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 oper­a­tor allows an expres­sions to be expanded.

It allows the ele­ments of an array to be expanded, so you do not have to loop over all the array ele­ments in the func­tion. In this post, we will see few prac­ti­cal use cases for the spread operator.

An array to be expanded as mul­ti­ple argu­ments to the function