← Back to release summary

URLSearchParams: updated constructor

Category
Network / Connectivity
Type
New or changed feature
Status
Enabled by default (Chrome 61)
Intent stage
None

Summary

URLSearchParams' constructor has been changed in https://github.com/whatwg/url/pull/175. It is now possible to create a new URLSearchParams by passing it any object (e.g. `new URLSearchParams({'foo': 'bar'})`).

Standards & signals

Docs: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams/URLSearchParams

View on chromestatus.com