Edit this page

up.Params up.Params.prototype.toFormData()
Class method

This feature is experimental. Please share your experiences so we know what to keep or change.

Returns a FormData representation of this up.Params instance.

Example

var params = new up.Params('foo=bar&baz=bam')
var formData = params.toFormData()

formData.get('foo') // 'bar'
formData.get('baz') // 'bam'

Return value