index.js
function deep_get(root, path) {
    var twig = root, result = undefined;
    path.split('/').forEach(function (branch, index, branches) {
        if (branch) {
            if (self.camelize) {
                branch = branch.replace(/(\-([a-z]))/g, function (m) { return m[1].toUpperCase(); })
            }
            if (index < branches.length - 1) {
                twig = twig[branch];
            } else {
                result = twig && twig[branch];
            }
        }
    });
    return result;
}
function deep_get(root, path) {
    var twig = root, result = undefined;
    path.split('/').forEach(function (branch, index, branches) {
        if (branch) {
            if (self.camelize) {
                branch = branch.replace(/(\-([a-z]))/g, function (m) { return m[1].toUpperCase(); })
            }
            if (index < branches.length - 1) {
                twig = twig[branch];
            } else {
                result = twig && twig[branch];
            }
        }
    });
    return result;
}
function deep_get ( root , path ) { var twig = root , result = undefined ; path . split ( '/' ) . forEach ( function ( branch , index , branches ) { if ( branch ) { if ( self . camelize ) { branch = branch . replace ( / (\-([a-z])) / g , function ( m ) { return m [ 1 ] . toUpperCase ( ) ; } ) } if ( index < branches . length - 1 ) { twig = twig [ branch ] ; } else { result = twig && twig [ branch ] ; } } } ) ; return result ; }
sort of inverse of above, get a nested object value from a path
sort of inverse of above get a nested object value from a path