b-flat
v3.0.1
Published
A simple object flattener/unflattener.
Downloads
5
Maintainers
Readme
♭-flat
A simple object flattener/unflattener.
Installation
npm install b-flat
Usage
Via ES6 import from module
const { flatten, unflatten } from 'b-flat';
const flattenedObject = flatten({a: [1,2,3]});
console.log(flattenedObject);
console.log(unflatten(flattenedObject));
Via require
const flatten = require('b-flat').flatten;
const unflatten = require('b-flat').unflatten;
const flattenedObject = flatten({a: [1,2,3]});
console.log(flattenedObject);
console.log(unflatten(flattenedObject));