{"ScriptPreparationCode":"var host = {\r\n method: function() {\r\n console.log(\u0027method is invoked\u0027);\r\n }\r\n}","TestCases":[{"Name":"Check via direct property lookup","Code":"if(host.method) {\r\n\tconsole.log(\u0027method exists\u0027); \r\n}","IsDeferred":false},{"Name":"Check via in","Code":"if(\u0027method\u0027 in host) {\r\n\tconsole.log(\u0027method exists\u0027); \r\n}","IsDeferred":false},{"Name":"Check via typeof","Code":"if(typeof host[\u0027method\u0027] !== \u0027undefined\u0027) {\r\n\tconsole.log(\u0027method exists\u0027); \r\n}","IsDeferred":false}]}