Function encodeURIComponent

    • Encodes a text string as a valid component of a Uniform Resource Identifier (URI).

      Parameters

      • uriComponent: string | number | boolean

        A value representing an unencoded URI component.

      Returns string