{"ScriptPreparationCode":null,"TestCases":[{"Name":"lodash","Code":"const target = [];\r\n\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n const newObj = {\r\n a: Math.floor(Math.random() * 10)\r\n }\r\n\r\n target.push(newObj)\r\n}\r\n\r\nreturn _.uniqWith(target, function(val, otherVal) { return val.a === otherVal.a })","IsDeferred":false},{"Name":"set","Code":"const target = [];\r\n\r\nfor (let i = 0; i \u003C 10000; i\u002B\u002B) {\r\n const newObj = {\r\n a: Math.floor(Math.random() * 10)\r\n }\r\n\r\n target.push(newObj)\r\n}\r\n\r\n\r\nconst newArray = target.map((obj) =\u003E JSON.stringify(obj));\r\n\r\nconst newSet = new Set(newArray)\r\n\r\nreturn [...newSet].map((objString)=\u003E JSON.parse(objString));","IsDeferred":false}]}