lib/superstring/index.js
function (key) {
        var arr = this.variables,
            obj,
            value,
            i,
            ii;

        for (i = 0, ii = arr.length; i < ii; i++) {
            obj = arr[i];
            // ensure that the item is an object
            if (!(obj && _.isObject(obj))) {
                continue;
            }

            // in case the object is a postman variable list, we give special attention
            if (obj.constructor._postman_propertyName === 'VariableList') {
                value = obj.oneNormalizedVariable(key);

                if (value && !value.disabled) {
                    return value;
                }
            }
            // else we return the value from the plain object
            else if (obj.hasOwnProperty(key)) {
                return obj[key];
            }
        }
    }
function (key) {
        var arr = this.variables,
            obj,
            value,
            i,
            ii;

        for (i = 0, ii = arr.length; i < ii; i++) {
            obj = arr[i];
            // ensure that the item is an object
            if (!(obj && _.isObject(obj))) {
                continue;
            }

            // in case the object is a postman variable list, we give special attention
            if (obj.constructor._postman_propertyName === 'VariableList') {
                value = obj.oneNormalizedVariable(key);

                if (value && !value.disabled) {
                    return value;
                }
            }
            // else we return the value from the plain object
            else if (obj.hasOwnProperty(key)) {
                return obj[key];
            }
        }
    }
function ( key ) { var arr = this . variables , obj , value , i , ii ; for ( i = 0 , ii = arr . length ; i < ii ; i ++ ) { obj = arr [ i ] ; // ensure that the item is an object if ( ! ( obj && _ . isObject ( obj ) ) ) { continue ; } // in case the object is a postman variable list, we give special attention if ( obj . constructor . _postman_propertyName === 'VariableList' ) { value = obj . oneNormalizedVariable ( key ) ; if ( value && ! value . disabled ) { return value ; } } // else we return the value from the plain object else if ( obj . hasOwnProperty ( key ) ) { return obj [ key ] ; } } }
Find a key from the array of variable objects provided to the substitutor

@param {String} key
@returns {*}
Find a key from the array of variable objects provided to the substitutor