Last active
July 1, 2020 07:08
-
-
Save iceener/e661f6384ea573bd335f0aa0ba8f7c28 to your computer and use it in GitHub Desktop.
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
// Object to Query String | |
const obj = { foo: 'bar', baz: 'qux' } | |
const queryString = new URLSearchParams(obj).toString() | |
// foo=bar&baz=qux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment