rxseger / undotpath

Destructure deeply nested structures

Repository from Github https://github.comrxseger/undotpathRepository from Github https://github.comrxseger/undotpath

undotpath

Destructure deeply nested structures created by dotpath-object-create

Usage:

const undotpath = require('undotpath');

undotpath({foo:{bar:{baz:123}}}); // returns 123

Recursively traverses nested objects, taking the first key until reaching a non-object and returns its value.

License

MIT

About

Destructure deeply nested structures

License:MIT License


Languages

Language:JavaScript 100.0%