{"ScriptPreparationCode":null,"TestCases":[{"Name":"Recursive","Code":"const getFunction = ( name, obj ) =\u003E {\r\n\tconst proto = Object.getPrototypeOf( obj );\r\n\tif( typeof proto !== \u0022object\u0022 )\r\n\t\treturn;\r\n// \tconsole.log( proto );\r\n\treturn proto[ name ] || getFunction( name, proto )\r\n// \tconst value = proto[ key ];\r\n// \tif( value !== undefined )\r\n// \t\treturn value;\r\n// \treturn getProtoProp( key )( proto );\r\n} \r\n\r\ngetFunction( \u0022then\u0022, Promise.resolve( 5 ) );","IsDeferred":false},{"Name":"Object.create","Code":"const getFunction = ( name, obj ) =\u003E {\r\n\tconst proto = Object.getPrototypeOf( obj );\r\n return Object.create( proto )[ name ];\r\n} \r\n\r\ngetFunction( \u0022then\u0022, Promise.resolve( 5 ) );","IsDeferred":false}]}