Reputation: 1406
Whenever I write
I can't seem to find the prop
property , when I try to view func
in console.
Where does the prop
property go and How does the property setting work?
Upvotes: 0
Views: 33
Reputation: 288000
IMO the following is is more intuitive than console.dir
:
Upvotes: 0
Reputation: 8354
prop
is being defined on the func
function reference.
To access the property use func.prop
or do console.dir(func)
will show the property in the property tree
Upvotes: 1