{"ScriptPreparationCode":"var obj = {}\r\nfor (let i = 0; i \u003C 1000; \u002B\u002Bi) {\r\n obj[\u0060a${i}\u0060] = i;\r\n}\r\nvar transform = (n) =\u003E n * n \u002B 1;","TestCases":[{"Name":"lodash mapValues","Code":"const newObj = _.mapValues(obj, (v, k) =\u003E transform(v));","IsDeferred":false},{"Name":"vanilla object.keys","Code":"const newObj = {};\r\nObject.keys(obj).forEach((key) =\u003E {\r\n newObj[key] = transform(obj[key]);\r\n});","IsDeferred":false},{"Name":"lodash reduce","Code":"const newObj = _.reduce(obj, (acc, val, key) =\u003E {\r\n acc[key] = transform(val);\r\n return acc;\r\n})","IsDeferred":false}]}