{"ScriptPreparationCode":"function getRandomInt(min, max) {\r\n return Math.floor(Math.random() * (max - min \u002B 1)) \u002B min;\r\n}\r\n\r\nfunction createRandomIntArray(maxLength) {\r\n const randomArray = [];\r\n\r\n for (let i = 0; i \u003C maxLength; i\u002B\u002B) {\r\n const randomInt = i;\r\n randomArray.push(i);\r\n }\r\n return randomArray;\r\n}\r\n\r\nfunction createTargetArray(maxLength, maxValue) {\r\n const randomArray = [];\r\n\r\n for (let i = 0; i \u003C maxLength-1; i\u002B\u002B) {\r\n const randomInt = i;\r\n randomArray.push(10001\u002Bi);\r\n }\r\n randomArray.push(maxValue);\r\n return randomArray;\r\n}\r\n\r\nvar ids1 = createRandomIntArray(100);\r\nvar ids2 = createRandomIntArray(1000);\r\nvar ids3 = createRandomIntArray(10000);\r\n\r\nvar target1 = createTargetArray(100, 99);\r\nvar target2 = createTargetArray(1000, 999);\r\nvar target3 = createTargetArray(10000, 9999);","TestCases":[{"Name":"set","Code":"var idsSet1 = new Set(ids1)\r\ntarget1.some(id =\u003E idsSet1.has(id))\r\n\r\nvar idsSet2 = new Set(ids2)\r\ntarget2.some(id =\u003E idsSet2.has(id))\r\n\r\nvar idsSet3 = new Set(ids3)\r\ntarget3.some(id =\u003E idsSet3.has(id))","IsDeferred":false},{"Name":"array","Code":"target1.some(id =\u003E ids1.includes(id))\r\ntarget2.some(id =\u003E ids2.includes(id))\r\ntarget3.some(id =\u003E ids3.includes(id))","IsDeferred":false}]}