Skip to content

Instantly share code, notes, and snippets.

@lucasmrdt
Created May 23, 2018 23:36
Show Gist options
  • Save lucasmrdt/bed3ba0d7df1c469b47abcb5e61caab3 to your computer and use it in GitHub Desktop.
Save lucasmrdt/bed3ba0d7df1c469b47abcb5e61caab3 to your computer and use it in GitHub Desktop.
[Javascript ES6] URLencode Object
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