lib/collection/variable-scope.js
function (excludeDisabled, caseSensitive) {
        // if the scope has no layers, we simply export the contents of primary store
        if (!this._layers) {
            return this.values.toObject(excludeDisabled, caseSensitive);
        }

        var mergedLayers = {};

        _.forEachRight(this._layers, function (layer) {
            _.assign(mergedLayers, layer.toObject(excludeDisabled, caseSensitive));
        });

        return _.assign(mergedLayers, this.values.toObject(excludeDisabled, caseSensitive));
    }
function (excludeDisabled, caseSensitive) {
        // if the scope has no layers, we simply export the contents of primary store
        if (!this._layers) {
            return this.values.toObject(excludeDisabled, caseSensitive);
        }

        var mergedLayers = {};

        _.forEachRight(this._layers, function (layer) {
            _.assign(mergedLayers, layer.toObject(excludeDisabled, caseSensitive));
        });

        return _.assign(mergedLayers, this.values.toObject(excludeDisabled, caseSensitive));
    }
function ( excludeDisabled , caseSensitive ) { // if the scope has no layers, we simply export the contents of primary store if ( ! this . _layers ) { return this . values . toObject ( excludeDisabled , caseSensitive ) ; } var mergedLayers = { } ; _ . forEachRight ( this . _layers , function ( layer ) { _ . assign ( mergedLayers , layer . toObject ( excludeDisabled , caseSensitive ) ) ; } ) ; return _ . assign ( mergedLayers , this . values . toObject ( excludeDisabled , caseSensitive ) ) ; }
Converts a list of Variables into an object where key is `_postman_propertyIndexKey` and value is determined
by the `valueOf` function

@param {Boolean} excludeDisabled
@param {Boolean} caseSensitive
@return {Object}
Converts a list of Variables into an object where key is _postman_propertyIndexKey and value is determined by the valueOf function