// @flow

export default function buildFormData(obj: {[key: string]: string}): FormData {
	let formData = new FormData()
	for (const key in obj) {
		if (obj.hasOwnProperty(key)) {
			formData.append(key, obj[key])
		}
	}
	return formData
}

@@ -118,68 +118,54 @@
 a()%0A
-%09for (const key in obj) %7B%0A%09%09if (obj.hasOwnProperty(key))
+%0A%09Object.keys(obj).forEach((key: string) =%3E
  %7B%0A
-%09
 %09%09fo
@@ -198,13 +198,11 @@
 %5D)%0A%09
-%09%7D%0A%09%7D
+%7D)%0A
 %0A%09re

replace a final hasOwnProperty with Object.keys iteration