Created
July 23, 2024 18:30
-
-
Save clovisdasilvaneto/e93ef5b800e0dac280cd6ef6691690a1 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
const myObject = { | |
nevinha: "a", | |
u: "2" | |
} | |
const form = new FormData() | |
Object.keys(myObject).forEach(key => { | |
form.append(key, myObject[key]) | |
}) | |
fetch("http://......", { | |
body: form | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment