Created
January 15, 2019 13:58
-
-
Save caina-jumia/a3ce88f3f12b1c22813d180b0e9dd5ba to your computer and use it in GitHub Desktop.
From answer to this question: https://stackoverflow.com/questions/11661187/form-serialize-javascript-no-framework
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
const queryString = Array.from(new FormData(formElement), e => e.map(encodeURIComponent).join('=')).join('&') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment