{"ScriptPreparationCode":"function generateID(length = 10) {\r\n const characters = \u0027ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\u0027;\r\n let result = \u0027\u0027;\r\n const charactersLength = characters.length;\r\n \r\n for (let i = 0; i \u003C length; i\u002B\u002B) {\r\n // Generate a random index based on characters length\r\n const randomIndex = Math.floor(Math.random() * charactersLength);\r\n // Append the character at the random index to the result string\r\n result \u002B= characters[randomIndex];\r\n }\r\n\r\n return result;\r\n}\r\n\r\nfunction createItem() {\r\n\treturn { [generateID()]: \u0027value\u0027 };\r\n}","TestCases":[{"Name":"concat","Code":"let params = new Array(1000).fill(\u0027a\u0027).map(createItem);\r\nlet other = new Array(1000).fill(\u0027a\u0027).map(createItem).concat(params);","IsDeferred":false},{"Name":"spread","Code":"let params = new Array(1000).fill(\u0027a\u0027).map(createItem);\r\nlet other = [...new Array(1000).fill(\u0027a\u0027).map(createItem), ...params];","IsDeferred":false},{"Name":"push (spread)","Code":"let params = new Array(1000).fill(\u0027a\u0027).map(createItem);\r\nlet other = new Array(1000).fill(\u0027a\u0027).map(createItem);\r\nother.push(...params);","IsDeferred":false},{"Name":"push (iterations)","Code":"let params = new Array(1000).fill(\u0027a\u0027).map(createItem);\r\nlet other = new Array(1000).fill(\u0027a\u0027).map(createItem);\r\nparams.forEach(it =\u003E other.push(it));","IsDeferred":false}]}