{"ScriptPreparationCode":"var\r\nmap = new Map(),\r\nset = new Set(),\r\narr = [],\r\nsym = Symbol(),\r\nuid = \u0022some-uid\u0022,\r\nitem = {};\t// not in any\r\n\r\n// Create\r\nfor (var i = 0; i \u003C 5000; \u002B\u002Bi)\r\n{\r\n var obj = {};\r\n map.set(obj, true);\r\n set.add(obj);\r\n arr.push(obj);\r\n obj[sym] = true;\r\n obj[uid] = true;\r\n}\r\n\r\nfunction mapHas(thing)\r\n{\r\n return map.has(thing);\r\n}\r\n\r\nfunction setHas(thing)\r\n{\r\n return set.has(thing);\r\n}\r\n\r\nfunction arrHas(thing)\r\n{\r\n return arr.indexOf(thing) \u003E= 0;\r\n}\r\n\r\nfunction symHas(thing)\r\n{\r\n return thing[sym];\r\n}\r\n\r\nfunction uidHas(thing)\r\n{\r\n return thing[uid];\r\n}\r\n\r\nfunction conHas(thing)\r\n{\r\n return false;\r\n}","TestCases":[{"Name":"map","Code":"mapHas(item);","IsDeferred":false},{"Name":"set","Code":"setHas(item);","IsDeferred":false},{"Name":"arr","Code":"arrHas(item);","IsDeferred":false},{"Name":"symbol","Code":"symHas(item);","IsDeferred":false},{"Name":"uid","Code":"uidHas(item);","IsDeferred":false},{"Name":"control","Code":"conHas(item);","IsDeferred":false}]}