Source @ github

decodeURIComponent

decodeURIComponent

Description

decodeURIComponent(string encodedUriComponent)

Parameters

Name Description Type Default Optional
encodedUriComponent string No

Examples

Example #1 – decodeURIComponent example

Decodes a url parameter.

var uriComponent = decodeURIComponent('%7B%22foo%22:%20%5B%22bar%22%5D%7D'); console.log(uriComponent); // {"foo": ["bar"]}

See also

External references