{"ScriptPreparationCode":"var object = {};\r\nvar array = [];\r\n\r\nfunction randomIntFromInterval(min, max) { // min and max included \r\n return Math.floor(Math.random() * (max - min \u002B 1) \u002B min);\r\n}\r\n\r\nfor(let i = 0; i \u003C 5000; i\u002B\u002B){\r\n\tobject[\u0027id\u0027\u002Bi] = true;\r\n array.push([\u0027id\u0027\u002Bi, true]);\r\n}","TestCases":[{"Name":"Array","Code":"let lookupId = randomIntFromInterval(0, 5000);\r\nfor(let i = 0; i \u003C array.length; i\u002B\u002B){\r\n if(array[i][0] == \u0027id\u0027\u002BlookupId){\r\n \treturn array[i][1];\r\n }\r\n}","IsDeferred":false},{"Name":"Object","Code":"let lookupId = randomIntFromInterval(0, 5000);\r\nlet lookupString = \u0027id\u0027\u002BlookupId;\r\nif(object.hasOwnProperty(lookupString)){\r\n return object[lookupString]; \r\n}","IsDeferred":false}]}