Skip to content

API DocumentationDocs


API Documentation / parseQuery

Function: parseQuery()

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

search: string

search string to parse

Returns

LocationQuery

a query object

Released under the MIT License.