{"ScriptPreparationCode":"function generateRandomData(length) {\r\n const data = [];\r\n const characters = \u0027ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\u0027;\r\n\r\n for (let i = 0; i \u003C length; i\u002B\u002B) {\r\n let randomString = \u0027\u0027;\r\n for (let j = 0; j \u003C 20; j\u002B\u002B) {\r\n randomString \u002B= characters.charAt(Math.floor(Math.random() * characters.length));\r\n }\r\n data.push({ value: randomString });\r\n }\r\n\r\n return data;\r\n}\r\n\r\nvar data = generateRandomData(20);\r\nvar stringToBeChecked = data[15];","TestCases":[{"Name":"includes","Code":"const a = data.map(x =\u003E x.value);\r\nreturn a.includes(stringToBeChecked);","IsDeferred":false},{"Name":"lookup","Code":"const b = new Set(data.map(x =\u003E x.value));\r\nreturn b.has(stringToBeChecked);","IsDeferred":false}]}