Created
November 18, 2012 17:44
-
-
Save jonvuri/4106483 to your computer and use it in GitHub Desktop.
Inspect prototypes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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