Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js print objects

// `depth` tells util.inspect() how many times to recurse while formatting the object, default is 2
console.dir(obj, {
  depth: 10
})

// ...or pass `null` to recurse indefinitely
console.dir(obj, {
  depth: null
})
Source by nodejs.dev #
 
PREVIOUS NEXT
Tagged: #js #print #objects
ADD COMMENT
Topic
Name
8+8 =