let formData = new FormData();
formData.append('name', 'value');
console.log(formData);
console.log(Object.fromEntries(formData.entries()));
console.log([...formData.entries()].reduce((accumulator, [key, value]) => {
accumulator[key] = value;
return accumulator;
}, {}));