{"ScriptPreparationCode":"var tuples = [];\r\nvar uuids = Array(20000)\r\n .fill(0)\r\n .map(() =\u003E crypto.randomUUID());\r\nfor (let i = 0; i \u003C 50000; i\u002B\u002B) {\r\n tuples.push({\r\n agency_id: uuids[i % uuids.length],\r\n user_id: uuids[(i \u002B 1) % uuids.length],\r\n role: \u0027whatever\u0027,\r\n email: \u0027whatever\u0027,\r\n phone_number: \u0027whatever\u0027,\r\n });\r\n}","TestCases":[{"Name":"lodash","Code":"_.uniqBy(\r\n tuples,\r\n (a) =\u003E a.agency_id \u002B a.user_id\r\n )","IsDeferred":false},{"Name":"Custom","Code":"tuples.filter(function ({ user_id, agency_id }, key) {\r\n return !this.has((key = agency_id \u002B user_id)) \u0026\u0026 this.add(key);\r\n }, new Set())","IsDeferred":false}]}