Chrome Extension

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]"

Search Index Data (The code snippet can also be found with below search text)

Javascript ES6 Spread Operator
Was this helpful?
0 Comments
Never leave your website again in search of code snippets by installing our chrome extension.
Open Code Manager