Function encodeQuery

  • Encode the object as a URI query segment.

    https://en.wikipedia.org/wiki/Uniform_Resource_Identifier

    Parameters

    • obj: Record<
          string,
          | undefined
          | string
          | number
          | boolean
          | HRef
          | HList<HRef>
          | string[]
          | HRef[],
      >

      The object to encode.

    Returns string

    A query or empty string if there's noting to encode.