fromParams()

Takes a serialized URL parameter string and turns it into an object.

This function is valid in v2.22.0 to v2.22.1. This function has been downloaded 1 time.

Parameters

{string} str
The serialized URL parameter string to turned into an object.
{Function=} opt_parser Optional
Optional function that parses each value found in str. For each value found this function will be passed (1) the value to be parsed and (2) the path to this value as an array and the return value will be used as the value to store in the object returned by fromParams().

Returns

{Object}
The object version of str.

Required Functions

This function directly 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.
  • nativeType()
    Gets the native type name of a primitive or an object. Unlike YourJS.typeOf(), the types are solely determined by the system.
  • unescape()
    Decodes any %## encoding in the given string. Plus symbols ('+') are decoded to a space character.