Skip to content

Function: uriDecode() ​

ts
function uriDecode(string: string): string;

Faster version of decodeURIComponent() that does not throw.

Parameters ​

ParameterTypeDescription
stringstringthe URL string to decode.

Returns ​

string

the decoded string or null if invalid.