@tadashi/unflatten-object
v2.0.2
Published
Unflatten a flat object
Downloads
34
Readme
Unflatten
Unflatten a flat object
Install
$ npm i -S @tadashi/unflatten-object
Usage
import unflatten from '@tadashi/unflatten-object'
const unflat = unflatten({
'a.b.c': 'foo',
'a.d': 'bar'
})
// => {
// a: {
// b: {
// c: 'foo'
// },
// d: 'bar'
// }
// }
License
MIT © Thiago Lagden