Skip to content

Instantly share code, notes, and snippets.

@gpichot
Created January 2, 2016 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gpichot/9c72781c3c2da69b9ca6 to your computer and use it in GitHub Desktop.
Save gpichot/9c72781c3c2da69b9ca6 to your computer and use it in GitHub Desktop.
Convert object to request body
return data.map((value, index) => {return index + '=' + value)).join('&');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment