{"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 = [];\r\n\r\nfor (const e of a) {\r\n if(set.indexOf(e.a) === -1) {\r\n\tuniques.push(e);\r\n set.push(e.a);\r\n }\r\n}","IsDeferred":false}]}