I\'ve tried console.log and looping through it using for in.
console.log
for in
Here it the MDN Reference on FormData.
Both attempts are in this fi
Try this function:
function formDataToObject(formData) { return Array.from(formData.entries()).reduce((old, pair) => ({ ...old, [pair[0]]: pair[1], }), {}); }