0

When I console.log an object, I can expand it and view its properties and the whole chain of prototypes all the way up. When I console.log the function the click on it takes me to the function definition in the source code. I would like the same behaviour though: click on a function, expand it and see its prototype. How can I do that?

1
  • use firefox, or microsoft edge Commented Nov 7, 2015 at 15:04

1 Answer 1

1

console.dir will handle what you are asking. Documentation available in the Console API Reference.

console-dir-devtools

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.