{"ScriptPreparationCode":"let data = [\r\n [\r\n 1731416366378,\r\n 3\r\n ],\r\n [\r\n 1731416400000,\r\n 3\r\n ],\r\n [\r\n 1731416546584,\r\n 3\r\n ],\r\n [\r\n 1731416734567,\r\n 1\r\n ],\r\n [\r\n 1731416915539,\r\n 1\r\n ],\r\n [\r\n 1731417103129,\r\n 1\r\n ],\r\n [\r\n 1731417283810,\r\n 1\r\n ],\r\n [\r\n 1731417465766,\r\n 3\r\n ],\r\n [\r\n 1731417644518,\r\n 3\r\n ],\r\n [\r\n 1731417828571,\r\n 0\r\n ],\r\n [\r\n 1731418008276,\r\n 0\r\n ],\r\n [\r\n 1731418195886,\r\n 0\r\n ],\r\n [\r\n 1731418399363,\r\n 0\r\n ],\r\n [\r\n 1731418592505,\r\n 0\r\n ],\r\n [\r\n 1731418771085,\r\n 0\r\n ],\r\n\r\n [\r\n 1731416366378,\r\n 3\r\n ],\r\n [\r\n 1731416400000,\r\n 3\r\n ],\r\n [\r\n 1731416546584,\r\n 3\r\n ],\r\n [\r\n 1731416734567,\r\n 1\r\n ],\r\n [\r\n 1731416915539,\r\n 1\r\n ],\r\n [\r\n 1731417103129,\r\n 1\r\n ],\r\n [\r\n 1731417283810,\r\n 1\r\n ],\r\n [\r\n 1731417465766,\r\n 3\r\n ],\r\n [\r\n 1731417644518,\r\n 3\r\n ],\r\n [\r\n 1731417828571,\r\n 0\r\n ],\r\n [\r\n 1731418008276,\r\n 0\r\n ],\r\n [\r\n 1731418195886,\r\n 0\r\n ],\r\n [\r\n 1731418399363,\r\n 0\r\n ],\r\n [\r\n 1731418592505,\r\n 0\r\n ],\r\n [\r\n 1731418771085,\r\n 0\r\n ],\r\n [\r\n 1731418962461,\r\n 0\r\n ],\r\n [\r\n 1731419159333,\r\n 4\r\n ],\r\n [\r\n 1731419341648,\r\n 4\r\n ],\r\n [\r\n 1731419521583,\r\n 0\r\n ],\r\n [\r\n 1731419702032,\r\n 0\r\n ],\r\n [\r\n 1731419886050,\r\n 0\r\n ],\r\n [\r\n 1731420068947,\r\n 0\r\n ],\r\n [\r\n 1731420270874,\r\n 3\r\n ],\r\n [\r\n 1731420475599,\r\n 3\r\n ],\r\n [\r\n 1731420698605,\r\n 3\r\n ],\r\n [\r\n 1731420884749,\r\n 3\r\n ],\r\n [\r\n 1731421063997,\r\n 3\r\n ],\r\n [\r\n 1731421286506,\r\n 3\r\n ],\r\n [\r\n 1731421486691,\r\n 3\r\n ],\r\n [\r\n 1731421709849,\r\n 3\r\n ],\r\n [\r\n 1731421926377,\r\n 3\r\n ],\r\n [\r\n 1731422158517,\r\n 3\r\n ],\r\n [\r\n 1731422380359,\r\n 3\r\n ],\r\n [\r\n 1731422586810,\r\n 3\r\n ],\r\n [\r\n 1731422801770,\r\n 3\r\n ],\r\n [\r\n 1731422994511,\r\n 3\r\n ],\r\n [\r\n 1731423178622,\r\n 3\r\n ],\r\n [\r\n 1731423389025,\r\n 3\r\n ],\r\n [\r\n 1731423579395,\r\n 3\r\n ],\r\n [\r\n 1731423772915,\r\n 3\r\n ],\r\n [\r\n 1731423961422,\r\n 3\r\n ],\r\n [\r\n 1731424137407,\r\n 3\r\n ],\r\n [\r\n 1731424317518,\r\n 3\r\n ],\r\n [\r\n 1731424499838,\r\n 3\r\n ],\r\n [\r\n 1731424688200,\r\n 3\r\n ],\r\n [\r\n 1731424866749,\r\n 3\r\n ],\r\n [\r\n 1731425063896,\r\n 3\r\n ],\r\n [\r\n 1731425246643,\r\n 3\r\n ],\r\n [\r\n 1731425426094,\r\n 2\r\n ],\r\n [\r\n 1731425614740,\r\n 2\r\n ],\r\n [\r\n 1731425802064,\r\n 2\r\n ],\r\n [\r\n 1731425982614,\r\n 2\r\n ],\r\n [\r\n 1731426161980,\r\n 2\r\n ],\r\n [\r\n 1731426342528,\r\n 3\r\n ],\r\n [\r\n 1731426522163,\r\n 3\r\n ],\r\n [\r\n 1731426704198,\r\n 2\r\n ],\r\n [\r\n 1731426885779,\r\n 2\r\n ],\r\n [\r\n 1731427064012,\r\n 2\r\n ],\r\n [\r\n 1731427243469,\r\n 2\r\n ],\r\n [\r\n 1731427424704,\r\n 2\r\n ],\r\n [\r\n 1731427606431,\r\n 2\r\n ],\r\n [\r\n 1731427788341,\r\n 3\r\n ],\r\n [\r\n 1731427976305,\r\n 3\r\n ],\r\n [\r\n 1731428154194,\r\n 3\r\n ],\r\n [\r\n 1731428333770,\r\n 3\r\n ],\r\n [\r\n 1731428516483,\r\n 3\r\n ],\r\n [\r\n 1731428693636,\r\n 3\r\n ],\r\n [\r\n 1731428876329,\r\n 3\r\n ],\r\n [\r\n 1731429054588,\r\n 3\r\n ],\r\n [\r\n 1731429234320,\r\n 3\r\n ],\r\n [\r\n 1731429413846,\r\n 3\r\n ],\r\n [\r\n 1731429594286,\r\n 3\r\n ],\r\n [\r\n 1731429675516,\r\n 3\r\n ]\r\n\r\n]","TestCases":[{"Name":"for ","Code":"for (var i = 0; i \u003C data.length; i\u002B\u002B) {\r\n data[i];\r\n}","IsDeferred":false},{"Name":"forEach","Code":"data.forEach(function(i) {\r\n data[i];\r\n});","IsDeferred":false},{"Name":"For In","Code":"for (var i in data) {\r\n data[i];\r\n}","IsDeferred":false},{"Name":"For of with continue","Code":"let criticalityCount = {};\r\n\r\nfor (let [, criticality] of data) {\r\n if (criticality === 0) {\r\n continue;\r\n }\r\n if (criticality in criticalityCount) {\r\n criticalityCount[criticality]\u002B\u002B;\r\n } else {\r\n criticalityCount[criticality] = 1;\r\n }\r\n }","IsDeferred":false},{"Name":"For of with filter before","Code":"let filteredData = data.filter(([, criticality]) =\u003E criticality !== 0); \r\nlet criticalityCount = {};\r\n\r\nfor (let [, criticality] of filteredData) {\r\n \r\n if (criticality in criticalityCount) {\r\n criticalityCount[criticality]\u002B\u002B;\r\n } else {\r\n criticalityCount[criticality] = 1;\r\n }\r\n }","IsDeferred":false}]}