Created
October 8, 2020 20:34
-
-
Save smitroshin/9eeb76668cc498b5112c61ee9a862377 to your computer and use it in GitHub Desktop.
Decode URL-ified object
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Decode URL-ified object | |
* | |
* @param {string} urlifiedObj | |
* @returns {any} | |
*/ | |
const decodeUrlifiedObject = (urlifiedObj) => JSON.parse(decodeURI(string)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment