{"ScriptPreparationCode":"var arr = [];\r\nfor (var i = 0; i \u003C 12345; i\u002B\u002B) {\r\n arr[i] = i;\r\n}\r\n\r\nfunction someFn(i) {\r\n return (i * 3 * 8 / 1200 * 0.002 / 40 * 0.2);\r\n}\r\n\r\nvar sumForEach = 0,\r\n sumReduce = 0,\r\n sumMap = 0,\r\n sumFilter = 0,\r\n sumFor = 0;","TestCases":[{"Name":"map","Code":"arr.map(item =\u003E {\r\n\tif(item == 123) {\r\n return item * 2;\r\n }\r\n return item;\r\n});","IsDeferred":false},{"Name":"filter","Code":"arr.filter(item =\u003E item != 123);","IsDeferred":false},{"Name":"for","Code":"var hung = []\r\nfor (var j = 0; j \u003C arr.length; j\u002B\u002B) {\r\n if(arr[j] == 123) {\r\n hung[j] = arr[j] * 2;\r\n }\r\n hung[j] = arr[j];\r\n}","IsDeferred":false}]}