Created
December 26, 2017 23:31
-
-
Save ryanburnette/8a6ac66c2bf52e907bfcea80f678cab1 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
function objectToFormData(obj) { | |
var pieces = []; | |
Object.keys(fd).forEach(function (key) { | |
pieces.push(`${key}=${fd[key]}`); | |
}); | |
return pieces.join('&'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment