Skip to content

Instantly share code, notes, and snippets.

@jonvuri
Created November 18, 2012 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jonvuri/4106483 to your computer and use it in GitHub Desktop.
Save jonvuri/4106483 to your computer and use it in GitHub Desktop.
Inspect prototypes
var util = require('util');
module.exports = function protoinspect(object) {
return util.inspect(object) + (object.__proto__ ? protoinspect(object.__proto__) : '');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment