shared
utils
string
object
is
extension
js
tracking
string
dom
when
selection
position
iframe
event
scroll
console
node
string
project
fs
console
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
- object*-Object
The object to convert
Return
- -Object
The converted object
Example
import { unflatten } from '@blackbyte/sugar/object';
unflatten({ 'something.cool': 'hello' }); // => { something: { cool: 'hello' } }Todo
- testsnormal
Author
- Olivier Bosselolivier.bossel@gmail.comhttps://blackbyte.space