console log printing object object

Solutions on MaxInterview for console log printing object object by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "console log printing object object"
Elias
22 Jul 2016
1const util = require('util')
2
3console.log(util.inspect(myObject, {showHidden: false, depth: null}))
4
5// alternative shortcut
6console.log(util.inspect(myObject, false, null, true /* enable colors */))
Wolf
22 Jan 2016
1require('util').inspect.defaultOptions.depth = null