{"ScriptPreparationCode":"function getRandomInt(max) {\r\n return Math.floor(Math.random() * Math.floor(max));\r\n}\r\n\r\nvar arr = [];\r\nfor(var i = 0; i \u003C 100000; i\u002B\u002B){\r\n arr.push({value:getRandomInt(100)});\r\n}\r\n","TestCases":[{"Name":"_.sumBy","Code":"_.sumBy(arr,\u0022value\u0022);","IsDeferred":false},{"Name":"foreach","Code":"let result = 0; arr.forEach(element =\u003E { result \u002B= element.value }); return result;","IsDeferred":false},{"Name":"for","Code":"let result = 0; for(let i=0;i\u003Carr.length;i\u002B\u002B) { result \u002B= arr[i].value; }; return result;","IsDeferred":false},{"Name":"reduce","Code":"arr.reduce((acc, curr) =\u003E acc \u002B= curr, 0)","IsDeferred":false}]}