dist/modules/to.js
function toNested(val, def) {
    function nest(src) {
        var dest = {};
        for (var p in src) {
            if (src.hasOwnProperty(p))
                if (/\./g.test(p))
                    object_1.set(dest, p, src[p]);
                else
                    dest[p] = src[p];
        }
        return dest;
    }
    return function_1.tryWrap(nest, val)(def);
}
function toNested(val, def) {
    function nest(src) {
        var dest = {};
        for (var p in src) {
            if (src.hasOwnProperty(p))
                if (/\./g.test(p))
                    object_1.set(dest, p, src[p]);
                else
                    dest[p] = src[p];
        }
        return dest;
    }
    return function_1.tryWrap(nest, val)(def);
}
function toNested ( val , def ) { function nest ( src ) { var dest = { } ; for ( var p in src ) { if ( src . hasOwnProperty ( p ) ) if ( / \. / g . test ( p ) ) object_1 . set ( dest , p , src [ p ] ) ; else dest [ p ] = src [ p ] ; } return dest ; } return function_1 . tryWrap ( nest , val ) ( def ) ; }
To Nested
Takes an object that was flattened by toUnnested
and re-nests it.

@param val the flattened object to be nested.
To Nested Takes an object that was flattened by toUnnested and re - nests it .