{"ScriptPreparationCode":"var values = Array(1000).fill([\u0027dupa\u0027, \u0027dupa2\u0027]).flat()","TestCases":[{"Name":"reduce","Code":"values.reduce((prev, status) =\u003E prev \u002B \u002B(status === \u0027dupa\u0027), 0)","IsDeferred":false},{"Name":"filter","Code":"values.filter(status =\u003E status === \u0027dupa\u0027).length","IsDeferred":false},{"Name":"for","Code":"var c = 0; \r\nfor(var i = 0; i \u003C values.length; \u002B\u002Bi) {\r\n c \u002B= \u002B(values[i] === \u0027dupa\u0027);\r\n}","IsDeferred":false},{"Name":"forin","Code":"var c = 0; \r\nfor(var v in values) {\r\n c \u002B= \u002B(v === \u0027dupa\u0027);\r\n}","IsDeferred":false},{"Name":"ternary","Code":"var c = 0; \r\nfor(var i = 0; i \u003C values.length; \u002B\u002Bi) {\r\n c \u002B= values[i] === \u0027dupa\u0027 ? 1 : 0;\r\n}","IsDeferred":false}]}