← Snippets

FormData Console Log

Added December 27, 2020

Console log each entry added to a FormData object

1function formDataLog(formData) {
2 const formDataObject = {};
3 formData.forEach((value, key) => {
4 formDataObject[key] = value;
5 })
6 console.warn('FormDataLog')
7 console.table(formDataObject)
8}
9