{"ScriptPreparationCode":"var values = {a: 123, b: 234, c: 445, d: 23, e: 234, f:234, g: 345, h: 34, i: 43};\r\nvar forEachObjectKey = (object, toRun) =\u003E {\r\n const keys = Object.keys(object)\r\n let length = keys.length\r\n let index = -1\r\n while (length--) {\r\n index\u002B\u002B\r\n toRun(keys[index], (object)[keys[index]])\r\n }\r\n}\r\n","TestCases":[{"Name":"lodash.forEach","Code":"let count = 0;\r\n_.forEach(values, (v,i) =\u003E {\r\n if (i != null) {\r\n \tcount\u002B= i; \r\n }\r\n})","IsDeferred":false},{"Name":"custom foreach","Code":"let count = 0\r\nforEachObjectKey(values, (key, value) =\u003E {\r\n if (value != null) {\r\n count \u002B= value\r\n }\r\n})","IsDeferred":false}]}