{"ScriptPreparationCode":null,"TestCases":[{"Name":"lodash sumBy test","Code":"const [value1, value2, value3, value4] = [1, 2, 3, 4]; \r\nconst arr = [\u0027value1\u0027, \u0027value2\u0027, \u0027value3\u0027, \u0027value4\u0027];\r\n\r\nconst totalSum = _.sumBy(arr, (field) =\u003E {\r\n return arr[field] || 0;\r\n});","IsDeferred":false},{"Name":"Normal sum test case","Code":"const [value1, value2, value3, value4] = [1, 2, 3, 4]; \r\n\r\nconst totalSum = (value1 || 0) \u002B (value2 || 0) \u002B (value3 || 0) \u002B (value4 || 0);","IsDeferred":false}]}