lib/collection/url.js
function (encode) {
        if (!this.query.count()) {
            return E;
        }

        if (typeof encode === OBJECT) { // @todo discontinue in v4
            return QueryParam.unparse(this.query.all(), encode);
        }

        return QueryParam.unparse(this.query.all(), { encode: encode });
    }
function (encode) {
        if (!this.query.count()) {
            return E;
        }

        if (typeof encode === OBJECT) { // @todo discontinue in v4
            return QueryParam.unparse(this.query.all(), encode);
        }

        return QueryParam.unparse(this.query.all(), { encode: encode });
    }
function ( encode ) { if ( ! this . query . count ( ) ) { return E ; } if ( typeof encode === OBJECT ) { // @todo discontinue in v4 return QueryParam . unparse ( this . query . all ( ) , encode ) ; } return QueryParam . unparse ( this . query . all ( ) , { encode : encode } ) ; }
Returns the stringified query string for this URL.

@param {?Boolean} [encode=false] - Enables URL encoding when processing the query string
@returns {String}

@deprecated since v3.4.6, drop support for `encode`

@note Deprecated variant of this function is as follows:
- param {?Object} [options={}]
- param {?Boolean} options.encode - Enables URL encoding when processing the query string.
- param {?Boolean} options.ignoreDisabled - Prevents disabled query parameters from showing up in the unparsed
Returns the stringified query string for this URL .