Iterate an Object and Append as FormData (Including files, and normal text)

I’m trying to upload files using formData, but also I do have some other fields that I need to include in the formData, so because I have an long object I want a automatic loop that iterates through the object I have and fills the form data.

For example this is my object:

const data {
  name: 'Adrian',
  files: [many other file uploads],
  houses: ['Mansion Q', 'Small Tini Sini House :P']
}

And this is the data I need to stimulate:

const formData = new FormData();
// someway to formData.append('the key', 'value of the key')