const a = []; const b = []; for(let i = 0;i<10_000; i++){ a.push(i); b.push(i*2); }
Initializing...
const c = [...a, ...b];
const c = a.concat(b);
You can edit these tests or add more tests to this page by appending /edit to the URL.