Created
January 11, 2019 19:26
-
-
Save rakibulalam/83af9fde5bc54f1bc8c4511d7c91d7a2 to your computer and use it in GitHub Desktop.
httpBuildQuery
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
static httpBuildQuery(data = {}) { | |
return Object.keys(data) | |
.map((k) => { | |
return encodeURIComponent(k) + '=' + encodeURIComponent(data[k]); | |
}) | |
.join('&'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment