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 function.…