{"ScriptPreparationCode":"var MyArr = Array.from({\r\n length: 40\r\n}, () =\u003E ({\r\n x: Math.floor(Math.random() * 40)\r\n}));\r\n\r\nfunction isUniqueLodashUniqBy(arr) {\r\n return arr.length === _.uniqBy(arr, it =\u003E it.x);\r\n}\r\n\r\nfunction isUniqueSet(arr) {\r\n return arr.length === new Set(arr.map(it =\u003E it.x)).size;\r\n}","TestCases":[{"Name":"Lodash uniqBy","Code":"isUniqueLodashUniqBy(MyArr);","IsDeferred":false},{"Name":"Set","Code":"isUniqueSet(MyArr);","IsDeferred":false}]}