{"ScriptPreparationCode":"var form = {\r\n \u002213960\u0022: {\r\n \u0022scheduled_for\u0022: \u00222023-08-01\u0022,\r\n \u0022amount\u0022: 340\r\n },\r\n \u002213961\u0022: {\r\n \u0022scheduled_for\u0022: \u00222023-09-01\u0022,\r\n \u0022amount\u0022: 340\r\n },\r\n \u002213962\u0022: {\r\n \u0022scheduled_for\u0022: \u00222023-10-01\u0022,\r\n \u0022amount\u0022: 340\r\n },\r\n \u002213963\u0022: {\r\n \u0022scheduled_for\u0022: \u00222023-11-01\u0022,\r\n \u0022amount\u0022: 340\r\n },\r\n \u002213964\u0022: {\r\n \u0022scheduled_for\u0022: \u00222023-12-01\u0022,\r\n \u0022amount\u0022: 340\r\n }\r\n}\r\n//for (var i = 0; i \u003C= max3; i\u002B\u002B) { arr3.push(i); }","TestCases":[{"Name":"me","Code":"_.sumBy(form, item =\u003E Number(item.amount));","IsDeferred":false},{"Name":"spenny","Code":"_.reduce(form, (sum, item) =\u003E {\r\n const {amount} = item;\r\n // checks if amount is not null, not undefined, and not a blank string\r\n if (amount !== null \u0026\u0026 amount !== undefined \u0026\u0026 amount !== \u0027\u0027) {\r\n return sum \u002B parseFloat(amount); // parse to float just in case it\u0027s a string number\r\n }\r\n return sum;\r\n }, 0);","IsDeferred":false}]}