{"ScriptPreparationCode":"var arr1 = [];\r\nvar person = {\r\n name: \u0027John\u0027,\r\n lastname: \u0027Doe\u0027,\r\n};\r\nfor (let i = 0; i \u003C 30; i\u002B\u002B) {\r\n arr1.push(person);\r\n}\r\nvar arr2 = [];\r\nfor (let i = 30; i \u003C 60; i\u002B\u002B) {\r\n arr2.push(person);\r\n}","TestCases":[{"Name":"Spread and map","Code":"var result = [ \r\n ...(arr1.map(x =\u003E ({ ...person, id: \u00271\u0027 }))), \r\n ...(arr2.map(x =\u003E ({ ...person, id: \u00271\u0027 }))), \r\n];","IsDeferred":false},{"Name":"Simple for loop","Code":"var resul2 = [];\r\nfor (let item of arr1) {\r\n \tresul2.push({ ...person, id: \u00271\u0027 }); \r\n}\r\nfor (let item of arr2) {\r\n \tresul2.push({ ...person, id: \u00271\u0027 }); \r\n}","IsDeferred":false}]}