{"ScriptPreparationCode":null,"TestCases":[{"Name":"String concat","Code":"\r\nvar arr = new Map()\r\nlet prev=\u0022\u0022\r\nfor (let i = 0;i\u003C10000;\u002B\u002Bi){\r\n prev\u002B=\u0022ABC:\u0022;\r\n \r\narr.set(\u002Bi,prev);\r\n} \r\nfunction process(s){\r\n return s.slice(0,s.lastIndexOf(\u0027:\u0027))\r\n}\r\nfor (const [key,value] of arr){\r\n arr.delete(key)\r\n}\r\n","IsDeferred":false},{"Name":"Array spread","Code":"var arr = new Map()\r\nlet prev=[]\r\nfor (let i = 0;i\u003C10000;\u002B\u002Bi){\r\n prev =[...prev, \u0027ABC\u0027]\r\narr.set(\u002Bi,prev);\r\n} \r\nfunction process(s){\r\n return s.slice(0,s.length-1)\r\n}\r\nfor (const [key,value] of arr){\r\n arr.delete(key)\r\n}","IsDeferred":false},{"Name":"Array with concat","Code":"var arr = new Map()\r\nlet prev=[]\r\nfor (let i = 0;i\u003C10000;\u002B\u002Bi){\r\n prev = prev.concat(\u0027ABC\u0027)\r\n arr.set(\u002Bi,prev);\r\n}\r\nfunction process(s){\r\n return s.slice(0,s.length-1)\r\n}\r\nfor (const [key,value] of arr){\r\n arr.delete(key)\r\n}\r\nconsole.log(\u0022hello\u0022)","IsDeferred":false}]}