javascript
Javascript ES6 Spread Operator
var arr1 = [0, 1, 2];
var arr2 = [3, 4, 5];
arr1.push(...arr2);
console.log(arr1);
Output
"[0,1,2,3,4,5]"
Was this helpful?
Similar Posts