Open
Description
I wasn't able to find any documentation about the options. From the description, I would assume it works somewhat similar to Node.js inspect
:
It's similar to Node.js'
util.inspect()
function, but it works cross platform, in most modern browsers as well as Node.
But it looks like this package doesn't support depth
option correctly. From my experience:
const nestedObj = { n: { a: { b: { c: { d: { e: '3' } } } } } }
loupe(nestedObj)
// prints this:
// { n: { a: { b: { c: { d: { e: '3' } } } } } }
util.inspect(nestedObj)
// prints this:
// { n: { a: { b: [Object] } } }
Is this intentional? If I pass down depth: 2
manually, I still get the full object printed.
Metadata
Assignees
Labels
No labels