Created
October 19, 2019 23:52
-
-
Save IgorHalfeld/3eb54201f96c3ed19ef4d0ceb2f0d452 to your computer and use it in GitHub Desktop.
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
function queryString(obj) { | |
return Object.entries(obj) | |
.map(([index, val]) => `${index}=${val}`) | |
.join('&'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment