Reputation: 5075
I want to see function in console as object. For example if I write
Object
it shows me
function Object() { [native code] }
but I want something like
{bind: function(){...}, call: function(){...}, hasOwnProperty: function(){...}, ...}
How can I do this in chrome console?
Upvotes: 2
Views: 909
Reputation: 5075
console.dir(Object)
shows
▶ function Object() { [native code] }
which can be expanded
arguments: null
caller: null
create: function create() { [native code] }
Upvotes: 3
Reputation: 14129
IT is not clear why you need this but there is a workaround. You can just write dot at the end and see the complete list of suggestions. For the text window.getElementById. devtools shows the list with apply, arguments, bind, call, caller, constructor, hasOwnProperty etc.
Upvotes: 1