{"ScriptPreparationCode":null,"TestCases":[{"Name":"push","Code":"let a = [];\r\nfor (let i = 0; i \u003C 1000; i \u002B= 1) {\r\n const values = [i, 10000 \u002B i, 100000 \u002B i];\r\n values.forEach(value =\u003E {\r\n a.push(value);\r\n });\r\n}\r\nconsole.log(a);","IsDeferred":false},{"Name":"push.apply","Code":"let a = [];\r\nfor (let i = 0; i \u003C 1000; i \u002B= 1) {\r\n const values = [i, 10000 \u002B i, 100000 \u002B i];\r\n Array.prototype.push.apply(a, values);\r\n}\r\nconsole.log(a);","IsDeferred":false},{"Name":"const push spread","Code":"const a = [];\r\nfor (let i = 0; i \u003C 1000; i \u002B= 1) {\r\n const values = [i, 10000 \u002B i, 100000 \u002B i];\r\n a.push(...values);\r\n}\r\nconsole.log(a);","IsDeferred":false},{"Name":"reassign spread","Code":"let a = [];\r\nfor (let i = 0; i \u003C 1000; i \u002B= 1) {\r\n const values = [i, 10000 \u002B i, 100000 \u002B i];\r\n a = [...a, ...values];\r\n}\r\nconsole.log(a);","IsDeferred":false},{"Name":"let push spread","Code":"let a = [];\r\nfor (let i = 0; i \u003C 1000; i \u002B= 1) {\r\n const values = [i, 10000 \u002B i, 100000 \u002B i];\r\n a.push(...values);\r\n}\r\nconsole.log(a);","IsDeferred":false}]}