index.js
function(cur, depth, context, callback, stop) {
        if(stop[0]) {
            return true;
        }
        if(depth === this.dimensionsList.length) {
            stop[0] = !callback(this._contextToObject(context), cloneDeep(cur));
            return stop[0];
        }
        var key;
        for(key in cur) {
            if(this._walkSettingsHelper(cur[key], depth+1, context.concat(key), callback, stop)) {
                return true;
            }
        }
    }
function(cur, depth, context, callback, stop) {
        if(stop[0]) {
            return true;
        }
        if(depth === this.dimensionsList.length) {
            stop[0] = !callback(this._contextToObject(context), cloneDeep(cur));
            return stop[0];
        }
        var key;
        for(key in cur) {
            if(this._walkSettingsHelper(cur[key], depth+1, context.concat(key), callback, stop)) {
                return true;
            }
        }
    }
function ( cur , depth , context , callback , stop ) { if ( stop [ 0 ] ) { return true ; } if ( depth === this . dimensionsList . length ) { stop [ 0 ] = ! callback ( this . _contextToObject ( context ) , cloneDeep ( cur ) ) ; return stop [ 0 ] ; } var key ; for ( key in cur ) { if ( this . _walkSettingsHelper ( cur [ key ] , depth + 1 , context . concat ( key ) , callback , stop ) ) { return true ; } } }
Recursive helper for walking the config tree.
@param cur {object}
@param depth {number}
@param context {array}
@param callback {function}
@param stop {array}
@private
Recursive helper for walking the config tree .