• Create a URL with a querystring

    Parameters

    • url: string

      Absolute or relative URL

    • Optional queryString: QueryStringObject

      Object with all keys to add to the querystring

    Returns string

    Returns the created URL

    Example

    import { utils } from "@hboictcloud/api";

    const url = utils.createUrl("matches.html", {
    search: "paris",
    filters: [
    "tagA",
    "tagB"
    ]
    });

    console.log(url); //matches.html?search=paris&filters=tagA&filters=tagB

Generated using TypeDoc