{"ScriptPreparationCode":"var length = 10000;\r\nvar key = \u00275000\u0027;\r\nvar obj = Array.from({length}).reduce((obj,_,index) =\u003E obj[index.toString()] = index, {});\r\nvar map = new Map(Array.from({length}).map((_,index) =\u003E [index.toString(), index]));\r\n\r\nvar arr = Array.from({length}).map((_,index) =\u003E index.toString());\r\nvar set = new Set(Array.from({length}).map((_,index) =\u003E index.toString()));","TestCases":[{"Name":"Get from Object","Code":"var value = obj[key];","IsDeferred":false},{"Name":"Get from Map","Code":"var value = map.get(key);","IsDeferred":false},{"Name":"Has key in Map","Code":"var has = map.has(key);","IsDeferred":false},{"Name":"Has key in Array OLD","Code":"var has = arr.indexOf(key) \u003E -1;","IsDeferred":false},{"Name":"Has key in Array NEW","Code":"var has = arr.includes(key);","IsDeferred":false},{"Name":"Has key in Set","Code":"var has = set.has(key);","IsDeferred":false}]}