1.0.2 • Published 6 years ago
@doverdb/wth v1.0.2
what-the-hell (wth)
Getting Started
Install @doverdb/wth
using npm.
npm i @doverdb/wth --save
Import the wth
component.
var wth = require('@doverdb/wth');
Traverses and prints out an object on each level. Useful for debugging deeply nested objects when you have no idea what is going on. For example:
wth({ a: { b: 'test' } }, 'a.b.c') will print:
initialObject: { a: { b: 'test' } }
---------------
key: a
value: { b: 'test' }
---------------
---------------
key: b
value: test
---------------
END