up.Params up.Params.prototype.toQuery()
Instance method

Returns a query string for this up.Params instance.

The keys and values in the returned query string will be percent-encoded. Non-primitive values (like File) will be omitted from the returned query string.

Example

let params = new up.Params({ foo: 'bar', baz: 'bam' })
let query = params.toQuery()

// query is now: 'foo=bar&baz=bam'

Return value

A query string built from this up.Params instance.

Type: string