@tadashi/flatten-object
v3.1.0
Published
Flattens object a single level deep
Downloads
33
Readme
Flatten
Flattens object a single level deep
Install
$ npm i -S @tadashi/flatten-object
Usage
import flatten from '@tadashi/flatten-object'
const flat = flatten({
a: {
b: {
c: 'foo'
},
d: 'bar'
}
}, '__')
// => {a__b__c: 'foo', a__d: 'bar'}
License
MIT © Thiago Lagden