Last active
December 5, 2022 14:18
-
-
Save luislobo14rap/5cb65463c9d49ce58d3aed143846f0fd to your computer and use it in GitHub Desktop.
This file contains 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
// unserialize.js v1.0.1 | |
function unserialize(serialize) { | |
let obj = {}; | |
serialize = serialize.split('&'); | |
for (let i = 0; i < serialize.length; i++) { | |
thisItem = serialize[i].split('='); | |
obj[decodeURIComponent(thisItem[0])] = decodeURIComponent(thisItem[1]); | |
}; | |
return obj; | |
}; |
This file contains 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
// unserialize.min.js v1.0.1 | |
function unserialize(serialize){let obj={};serialize=serialize.split('&');for(let i=0;i<serialize.length;i++){thisItem=serialize[i].split('=');obj[decodeURIComponent(thisItem[0])]=decodeURIComponent(thisItem[1])};return obj} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment