Generates a query string from a record of key-value pairs. Only includes keys in the query string whose values are defined.

  • Parameters

    • params: Record<string, string | number | boolean>

      The record of key-value pairs.

    Returns string

    The query string.