Created
May 23, 2018 23:36
-
-
Save lucasmrdt/bed3ba0d7df1c469b47abcb5e61caab3 to your computer and use it in GitHub Desktop.
[Javascript ES6] URLencode Object
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
const urlEncode = (obj) => [...Object.keys(obj)].map(key => key + '=' obj[key]).join('&') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment