Advertisement
kalovski

Untitled

Sep 19th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. let myArray = [1, 2, 3];
  2.  
  3. let newArray = [...myArray, 4, 5, 6];
  4.  
  5. console.log(newArray);
  6. // 1, 2, 3, 4, 5, 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement