Created
April 5, 2019 09:42
-
-
Save KaKi87/3730453e24f443349822135af1c8c4d6 to your computer and use it in GitHub Desktop.
The simplest object to querystring JS function ever
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 = object => Object.keys(object).map(key => `${key}=${object[key]}`).join('&'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment