Skip to content

Instantly share code, notes, and snippets.



Last active Jan 15, 2018
What would you like to do?
//in babel //in javascript
const arr1 = ['a','b','c']; var arr1 = ['a', 'b', 'c'];
const arr2 = ['d','e','f']; var arr2 = ['d', 'e', 'f'];
var arr3= [...arr1,...arr2]; var arr3 = [].concat(arr1, arr2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.