{"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(minLength, maxLength) {\r\n const length = getRandomInt(minLength, maxLength);\r\n const randomArray = [];\r\n\r\n for (let i = 0; i \u003C length; i\u002B\u002B) {\r\n const randomInt = i;\r\n randomArray.push(getRandomInt(0, maxLength));\r\n }\r\n\r\n return randomArray;\r\n}\r\n\r\nconst minLength = 1000;\r\nconst maxLength = 1001;\r\n\r\nvar ids1 = createRandomIntArray(minLength, maxLength);\r\nvar ids2 = createRandomIntArray(minLength, maxLength);\r\nvar ids3 = createRandomIntArray(minLength, maxLength);\r\n\r\nvar target1 = createRandomIntArray(1, 50);\r\nvar target2 = createRandomIntArray(1, 50);\r\nvar target3 = createRandomIntArray(1, 50);","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}]}