{"ScriptPreparationCode":"function dec2hex (dec) {\r\n return dec \u003C 10\r\n ? \u00270\u0027 \u002B String(dec)\r\n : dec.toString(16)\r\n}\r\n\r\nfunction generateId (len) {\r\n var arr = new Uint8Array((len || 40) / 2)\r\n window.crypto.getRandomValues(arr)\r\n return Array.from(arr, dec2hex).join(\u0027\u0027)\r\n}\r\n\r\nvar a = []\r\nvar b = []\r\nfor( let i = 0; i \u003C 1000; i\u002B\u002B)\r\n{\r\n a[i] = generateId(16)\r\n b[i] = generateId(16)\r\n}\r\n\r\nvar bs = new Set(b)","TestCases":[{"Name":"lodash","Code":"const res = _.xor(a, b).lenght === 0;","IsDeferred":false},{"Name":"set diff","Code":"const res = a.length === b.length \u0026\u0026 a.every((x) =\u003E bs.has(x))","IsDeferred":false}]}