Skip to content

Instantly share code, notes, and snippets.

@IgorHalfeld
Created October 19, 2019 23:52
Show Gist options
  • Save IgorHalfeld/3eb54201f96c3ed19ef4d0ceb2f0d452 to your computer and use it in GitHub Desktop.
Save IgorHalfeld/3eb54201f96c3ed19ef4d0ceb2f0d452 to your computer and use it in GitHub Desktop.
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