-
-
Save c80609a/0bed07fe2de6f26e28b596f71acfe7dd to your computer and use it in GitHub Desktop.
Merge Arrays in one with ES6 Array spread
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const arr1 = [1,2,3] | |
const arr2 = [4,5,6] | |
const arr3 = [...arr1, ...arr2] //arr3 ==> [1,2,3,4,5,6] |
Author
c80609a
commented
May 12, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment