{"ScriptPreparationCode":"var itemsArray = [];\r\n\r\nfor (let i = 0; i \u003C 100000; i\u002B\u002B) {\r\n\titemsArray.push({\r\n \tused: i,\r\n \tfree: i,\r\n \ttotal: i \u002B i,\r\n })\r\n}","TestCases":[{"Name":"lodash sum","Code":"const data = {\r\n\ta: _.sumBy(itemsArray, item =\u003E item.used),\r\n \tb: _.sumBy(itemsArray, item =\u003E item.free),\r\n \tc: _.sumBy(itemsArray, item =\u003E item.total),\r\n}\r\nconsole.log(data)","IsDeferred":false},{"Name":"native sum","Code":"let a = 0;\r\nlet b = 0;\r\nlet c = 0;\r\nitemsArray.forEach((item) =\u003E {\r\n\ta \u002B= item.used;\r\n b \u002B= item.free;\r\n c \u002B= item.total;\r\n})\r\nconsole.log({a, b, c})","IsDeferred":false},{"Name":"lodash for each","Code":"let a = 0;\r\nlet b = 0;\r\nlet c = 0;\r\n_.forEach(itemsArray, (item) =\u003E {\r\n\ta \u002B= item.used;\r\n b \u002B= item.free;\r\n c \u002B= item.total;\r\n})\r\n\r\nconsole.log({a, b, c})","IsDeferred":false}]}