Skip to content

Instantly share code, notes, and snippets.

@WesleySmits
Created September 7, 2022 18:58
Show Gist options
  • Save WesleySmits/e70d49fb158648de8edd1c34ed7eca5f to your computer and use it in GitHub Desktop.
Save WesleySmits/e70d49fb158648de8edd1c34ed7eca5f to your computer and use it in GitHub Desktop.
Formdata: Convert FormData to Query Params
const searchParams = new URLSearchParams(formData);
const queryString = searchParams.toString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment