vigour-io / unflatten

Opposite of flatten-obj
ISC License
2 stars 2 forks source link

unflatten

Build Status js-standard-style npm version Coverage Status

var obj = unflatten(subject, [opts])

Opposite of flatten-obj. Unflattens an object with delimited keys

const unflatten = require('unflatten')
unflatten({
  'a.b.c': 'd'
})
/*
{
  a: {
    b: {
      c: 'd'
    }
  }
}
*/