Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 214 Bytes

spread.md

File metadata and controls

8 lines (5 loc) · 214 Bytes

#Spread Operator

With the Spread Operator, it allows us to quickly copy all or part of an existing array or object into another array or object.

var arr = [1, 2, 3, 4, 5]; 

console.log(...arr);