{"ScriptPreparationCode":"window.array = [1, 4, 3, 4, 2, 2, 1, 5, 3, 5, 1, 4, 3, 4, 2, 2, 1, 5, 3, 5, 1, 4, 3, 4, 2, 2, 1, 5, 3, 5, 1, 4, 3, 4, 2, 2, 1, 5, 3, 5, 1, 4, 3, 4, 2, 2, 1, 5, 3, 5];","TestCases":[{"Name":"Filter length","Code":"const x = _.filter(window.array, i =\u003E i === 3).length;\r\nreturn x;","IsDeferred":false},{"Name":"Sum","Code":"const x = _.sumBy(window.array, i =\u003E i === 3 ? 1 : 0);\r\nreturn x;","IsDeferred":false},{"Name":"Manual","Code":"let x = 0;\r\nlet array = window.array;\r\nlet len = array.length;\r\nfor (let i = 0; i \u003C len; i\u002B\u002B) {\r\n if (array[i] === 3) {\r\n x\u002B\u002B;\r\n }\r\n}\r\nreturn x;","IsDeferred":false}]}