lib/common/utils/dataschema-json.js
function (path, data) {
        var i = 0,
            len = path.length;
        for (;i<len;i++) {
            if (isObject(data) && (path[i] in data)) {
                data = data[path[i]];
            } else {
                data = undefined;
                break;
            }
        }
        return data;
    }
function (path, data) {
        var i = 0,
            len = path.length;
        for (;i<len;i++) {
            if (isObject(data) && (path[i] in data)) {
                data = data[path[i]];
            } else {
                data = undefined;
                break;
            }
        }
        return data;
    }
function ( path , data ) { var i = 0 , len = path . length ; for ( ; i < len ; i ++ ) { if ( isObject ( data ) && ( path [ i ] in data ) ) { data = data [ path [ i ] ] ; } else { data = undefined ; break ; } } return data ; }
Utility function to walk a path and return the value located there.

@method getLocationValue
@param path {String[]} Locator path.
@param data {String} Data to traverse.
@return {Object} Data value at location.
@static
Utility function to walk a path and return the value located there .