Function createQueryString

  • Create a querystring of all keys in a given object

    Parameters

    • object: Object

      Object to convert to a querystring

    Returns string

    Querystring of all keys in the object

    Example

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

    const queryString = utils.createQueryString({
    search: "paris",
    filters: [
    "tagA",
    "tagB"
    ]
    });

    console.log(queryString); //search=paris&filters=tagA&filters=tagB

Generated using TypeDoc