solarnetwork-api-core
    Preparing search index...

    Function urlQueryParse

    • Parse the query portion of a URL string, and return a parameter object for the parsed key/value pairs.

      Multiple parameters of the same name will be stored as an array on the returned object.

      Parameters

      • search: string

        the query portion of the URL, which may optionally include the leading ? character

      • OptionalmultiValueKeys: Set<string>

        if provided, a set of keys for which to always treat as a multi-value array, even if there is only one value

      Returns Record<string, string | string[]>

      the parsed query parameters, as a parameter object