vtxhxw
Last Updated: February 25, 2016
·
917
· stuk
Me

Exploring functions in the Chrome Dev tools

Edit: an easier way is console.dir(fn). Thanks to @ELV1S on Twitter.

If you have a function with properties directly on it, logging it directly in the Chrome dev tools console will do toString and you'll just see its source:

Picture

However, if you wrap it in an object, then you can use get disclosure triangle that allows you to explore all of it's properties:

Picture

Much better!

Say Thanks
Respond

2 Responses
Add your response

6185
C595e7c8 950a 4ad5 bbe4 231ba4c744cb

Awesome job! I can't wait to try putting it to use!

over 1 year ago ·
8895
08f077ea061585744ee080824f5a8e65

Dinky tip!

over 1 year ago ·