object-in-one-level
v1.0.0
Published
serializes a object to one level
Downloads
3
Readme
object-in-one-level
serialize a object to one level
Installation
$ npm install --save object-in-one-level
Usage
var objectInOneLevel = require('object-in-one-level');
var obj = {
a: {
b: {
c: 'd'
}
}
};
var oneLevel = objectInOneLevel(obj);
// oneLevel['a.b.c'] === 'd'
License
MIT © Thiago Rodrigues