parseQS()

Parses a URL to get the parameters specified in the query string.

This function is valid in v2.3.0 to v2.13.1. This function has been downloaded 25 times.

Parameter

{string} url
The URL to parse.

Returns

{Object}
An object in which the keys are the keys of the parameters found in url and the values are the corresponding values found in url. If a parameter key is specified twice or ends in "[]", that property will be an array of all of the found values for that key.

Required Functions

This function requires the following functions which are included automatically:

  • has()
    Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.
  • typeOf()
    Either gets the type of a value or adds a constructor registering its custom type name.