console log printing object object

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

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