{"ScriptPreparationCode":"var newUsers = [\r\n { \u0027name\u0027: \u0027fred\u0027, \u0027age\u0027: 40 },\r\n { \u0027name\u0027: \u0027barney\u0027, \u0027age\u0027: 36 },\r\n { \u0027name\u0027: \u0027pebbles\u0027, \u0027age\u0027: 2 }\r\n];\r\n\r\nfor(let i = 0; i \u003C 2000; i\u002B\u002B) {\r\n var newUser = { \u0027name\u0027: \u0027user_\u0027 \u002B i, \u0027age\u0027: Math.floor(Math.random() * i) };\r\n newUsers.push(newUser);\r\n}","TestCases":[{"Name":"uniqWith","Code":"const unionUsers1 = _.uniqWith(newUsers, (a, b) =\u003E a.name === b.name \u0026\u0026 a.age === b.age);","IsDeferred":false},{"Name":"uniqBy Join","Code":"const unionUsers1 = _.uniqBy(newUsers, v =\u003E [v.name, v.age].join(\u0027-\u0027));","IsDeferred":false},{"Name":"uniqBy Stringify","Code":"const unionUsers1 = _.uniqBy(newUsers, v =\u003E JSON.stringify([v.name, v.age]));","IsDeferred":false},{"Name":"uniqBy Stringify Pick","Code":"const unionUsers1 = _.uniqBy(newUsers, v =\u003E JSON.stringify(_.pick(v, [\u0027name\u0027, \u0027age\u0027])));","IsDeferred":false},{"Name":"uniqBy Join map pick","Code":"const unionUsers1 = _.uniqBy(newUsers, v =\u003E ([\u0027name\u0027, \u0027age\u0027].map(n =\u003E v[n])).join(\u0027-\u0027));","IsDeferred":false}]}