deep-inspect icon indicating copy to clipboard operation
deep-inspect copied to clipboard

More readable output?

Open Nieralyte opened this issue 9 years ago • 0 comments

Something similar to:

{ name: 'c',
  friend:
   { name: 'b',
     friend: { name: 'a', __proto__: { name: 'A' } },
     __proto__: { name: 'B' } },
  __proto__: { name: 'C' } }

would be more readable compared to:

Object
├─┬ [[Parent]] : Object
│ ├─┬ [[Parent]] : Object
│ │ └── [[Parent]] : null
│ └─┬ Key: "name"
│   └── "C"
├─┬ Key: "name"
│ └── "c"
└─┬ Key: "friend"
  └─┬ Object
    ├─┬ [[Parent]] : Object
    │ ├─┬ [[Parent]] : Object
    │ │ └── [[Parent]] : null
    │ └─┬ Key: "name"
    │   └── "B"
    ├─┬ Key: "name"
    │ └── "b"
    └─┬ Key: "friend"
      └─┬ Object
        ├─┬ [[Parent]] : Object
        │ ├─┬ [[Parent]] : Object
        │ │ └── [[Parent]] : null
        │ └─┬ Key: "name"
        │   └── "A"
        └─┬ Key: "name"
          └── "a"

Nieralyte avatar Oct 15 '15 12:10 Nieralyte