unflatten

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.object

This function simply take an object like this one:

{
  'something.cool': 'hello'
}

and convert it to something like this:

{
  something: {
    cool: 'hello'
  }
}

Params

  1. object*-Object

    The object to convert

Return

  1. -Object

    The converted object

Example

import { unflatten } from '@blackbyte/sugar/object';
unflatten({ 'something.cool': 'hello' }); // => { something: { cool: 'hello' } }

Todo

  • testsnormal