{"ScriptPreparationCode":"const arrayLength = 100000;\r\n\r\n// Function to generate random data (number, string, or boolean)\r\nconst getRandomData = () =\u003E {\r\n const randomNumber = Math.floor(Math.random() * 1000); // Random number between 0 and 999\r\n const randomString = Math.random().toString(36).substring(7); // Random string\r\n const randomBoolean = Math.random() \u003C 0.5; // Random boolean (true or false)\r\n\r\n // Randomly choose one of the three data types\r\n const randomDataType = [randomNumber, randomString, randomBoolean][\r\n Math.floor(Math.random() * 3)\r\n ];\r\n\r\n return randomDataType;\r\n};\r\n\r\nvar largeArray1 = Array.from({ length: arrayLength }, () =\u003E getRandomData());\r\nvar largeArray2 = Array.from({ length: arrayLength }, () =\u003E getRandomData());\r\nvar largeArray3 = [...largeArray1];","TestCases":[{"Name":"Array.prototype.concat","Code":"var other = [1,2,3].concat(largeArray2);","IsDeferred":false},{"Name":"spread operator","Code":"var other = [...[1,2,3], ...largeArray2]","IsDeferred":false},{"Name":"Push with new array","Code":"var other = [1,2,3].push(...largeArray2);","IsDeferred":false}]}