{"ScriptPreparationCode":"var users = [\r\n { \u0027user\u0027: \u0027joey\u0027, \u0027age\u0027: 29 },\r\n { \u0027user\u0027: \u0027joey\u0027, \u0027age\u0027: 32 },\r\n { \u0027user\u0027: \u0027ross\u0027, \u0027age\u0027: 41 },\r\n { \u0027user\u0027: \u0027ross\u0027, \u0027age\u0027: 25 },\r\n { \u0027user\u0027: \u0027ross\u0027, \u0027age\u0027: 48 },\r\n { \u0027user\u0027: \u0027chandler\u0027, \u0027age\u0027: 39 },\r\n { \u0027user\u0027: \u0027chandler\u0027, \u0027age\u0027: 12 },\r\n { \u0027user\u0027: \u0027chandler\u0027, \u0027age\u0027: 41 }\r\n]","TestCases":[{"Name":"Native uniqueBy","Code":"const uniqueBy = (array, key) =\u003E\r\n array.filter((value, index, self) =\u003E self.findIndex((item) =\u003E item[key] === value[key]) === index);\r\n\r\nlet uniqued = uniqueBy(users, \u0027user\u0027);","IsDeferred":false},{"Name":"Lodash uniqBy","Code":"let uniqued = _.uniqBy(users, [\u0027user\u0027]);","IsDeferred":false}]}