flattening

2.4.3 • Public • Published

Node.js object flattening

flattening

Instalation

npm i -S flattening

Usage

const flattening = require('flattening');

const obj = {a: 1, b: {c: { d: 4 }}};
const flatObj = flattening(obj);

console.log(flatObj); // { a: 1, 'b.c.d': 4 }

Package Sidebar

Install

npm i flattening

Weekly Downloads

15

Version

2.4.3

License

MIT

Unpacked Size

3.17 kB

Total Files

5

Last publish

Collaborators

  • ivanoff