{"ScriptPreparationCode":null,"TestCases":[{"Name":"UniqBy","Code":"const a = [{a:1},{a:1},{a:1},{a:2},{a:2},{a:3}]\r\n\r\nconst uniques = _.uniqBy(a, \u0027a\u0027)","IsDeferred":false},{"Name":"Set","Code":"const a = [{a:1},{a:1},{a:1},{a:2},{a:2},{a:3}]\r\n\r\nconst uniques = [];\r\nconst set = new Set();\r\n\r\nfor (const e of a) {\r\n if(!set.has(e.a)) {\r\n\tuniques.push(e);\r\n set.add(e.a);\r\n }\r\n}","IsDeferred":false}]}