Skip to content

Instantly share code, notes, and snippets.

@bansalayush
Last active January 15, 2018 10:57
Show Gist options
  • Save bansalayush/c56c08a9d09557eb43938983359cde12 to your computer and use it in GitHub Desktop.
Save bansalayush/c56c08a9d09557eb43938983359cde12 to your computer and use it in GitHub Desktop.
//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