{"ScriptPreparationCode":"var arr = new Array(500).fill().map(()=\u003E({id:Math.random()**Math.random()**Math.random()}));","TestCases":[{"Name":"map","Code":"const res1=arr.map(({id})=\u003Eid\u003EMath.random()?{foo:\u0027bar\u0027}:{bar:\u0027foo\u0027});","IsDeferred":false},{"Name":"reverse for","Code":"const res2=new Array(arr.length);\r\nfor (let i=arr.length-1;i\u003E-1;i--){\r\n res2[i]=arr[i].id\u003EMath.random()?{foo:\u0027bar\u0027}:{bar:\u0027foo\u0027}\r\n}","IsDeferred":false},{"Name":"for","Code":"const res2=new Array(arr.length);\r\nfor (let i=0;i\u003Carr.length;i\u002B\u002B){\r\n res2[i]=arr[i].id\u003EMath.random()?{foo:\u0027bar\u0027}:{bar:\u0027foo\u0027}\r\n}","IsDeferred":false},{"Name":"for push","Code":"const res2=[]\r\nfor (let i=0;i\u003Carr.length;i\u002B\u002B){\r\n res2.push(arr[i].id\u003EMath.random()?{foo:\u0027bar\u0027}:{bar:\u0027foo\u0027})\r\n}","IsDeferred":false},{"Name":"reverse for unshift","Code":"const res2=new Array();\r\nfor (let i=arr.length-1;i\u003E-1;i--){\r\n res2.unshift(arr[i].id\u003EMath.random()?{foo:\u0027bar\u0027}:{bar:\u0027foo\u0027})\r\n}","IsDeferred":false}]}