{"ScriptPreparationCode":null,"TestCases":[{"Name":"Includes","Code":"const arr1 = Array.from({ length: 1_000_000 }, () =\u003E\r\n Math.floor(Math.random() * 100_000),\r\n)\r\n\r\nconst arr2 = Array.from({ length: 1_000_000 }, () =\u003E\r\n Math.floor(Math.random() * 100_000),\r\n)\r\n\r\nconst fn = () =\u003E {\r\n for (const el of arr1) {\r\n if (arr2.includes(el)) return true\r\n }\r\n}\r\n\r\nfn()","IsDeferred":false},{"Name":"new Set","Code":"const arr1 = Array.from({ length: 1_000_000 }, () =\u003E\r\n Math.floor(Math.random() * 100_000),\r\n)\r\n\r\nconst arr2 = Array.from({ length: 1_000_000 }, () =\u003E\r\n Math.floor(Math.random() * 100_000),\r\n)\r\n\r\nconst fn = () =\u003E {\r\n const set = new Set(arr1)\r\n\r\n for (const el of arr2) {\r\n if (set.has(el)) return true\r\n }\r\n}\r\n\r\nfn()","IsDeferred":false}]}