I\'m curious about the way Node.js prints objects through console.log(object).
I have the following code (from Learning Javascript Design Patterns book) under a fil
console.log() in node utilizes util.inspect(), which uses Object.keys() on objects, which returns only own enumerable properties. Also, by default, Object.defineProperty() sets enumerable: false if you do not explicitly set it to true.
console.log()
util.inspect()
Object.defineProperty()
enumerable: false
true