{"ScriptPreparationCode":"users = {\r\n \u0027fred\u0027: { \u0027user\u0027: \u0027fred\u0027, \u0027age\u0027: 40 },\r\n \u0027pebbles\u0027: { \u0027user\u0027: \u0027pebbles\u0027, \u0027age\u0027: 1 }\r\n};","TestCases":[{"Name":"Lodash","Code":"_.mapValues(users, ({ age }) =\u003E age);","IsDeferred":false},{"Name":"Native reduce","Code":"const keys = _.keys(users);\r\nkeys.reduce((acc, key) =\u003E {\r\n acc[key] = users[key].age;\r\n return acc;\r\n}, {});","IsDeferred":false},{"Name":"native for","Code":"const keys = _.keys(users);\r\nconst len = keys.length;\r\n\r\nconst result = {};\r\n\r\nfor (let index = 0; index \u003C len; index\u002B\u002B) {\r\n result[keys[index]] = users[keys[index]].age;\r\n}","IsDeferred":false},{"Name":"native forEach","Code":"const keys = _.keys(users);\r\nconst result = {};\r\n\r\nkeys.forEach(key =\u003E {\r\n result[key] = users[key].age;\r\n});","IsDeferred":false}]}