Skip to content

vue-router / parseQuery

parseQuery() ​

ts
function parseQuery(search): LocationQuery;

Internal

Transforms a queryString into a LocationQuery object. Accept both, a version with the leading ? and without Should work as URLSearchParams

Parameters ​

string

search string to parse

Returns ​

LocationQuery

a query object

Released under the MIT License.