{"ScriptPreparationCode":"var arr = [];\r\nvar i = 0;\r\n\r\nwhile (i \u003C= 1E5) arr[i] = { id: i\u002B\u002B };","TestCases":[{"Name":"Search the array.","Code":"let j = 0;\r\nwhile (j \u003C= 1E5) {\r\n const item = arr.find(e =\u003E e.id == j\u002B\u002B);\r\n}","IsDeferred":false},{"Name":"Make a map then search.","Code":"let myMap = new Map(arr.map(e =\u003E ([e.id, e])));\r\nlet j = 0;\r\nwhile (j \u003C= 1E5) {\r\n const item = myMap.get(j\u002B\u002B);\r\n}","IsDeferred":false}]}