function encodeURIComponent encodeURIComponent(uriComponent: string | number | boolean): string 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. Return Type string