const a = []; for (let i = 0; i<10000; i++) a.push(i); let b = 5;
Initializing...
const c = [...a, b];
const c = a.concat(b);
const c = a.toSpliced(a.length, 0, b);
You can edit these tests or add more tests to this page by appending /edit to the URL.