console log formdata typescript code example
Example 1: how to console.log formData
// Display the values
for (var value of formData.values()) {
console.log(value);
}
Example 2: console log formdata
// Display the key/value pairs
for (var pair of formData.entries()) {
console.log(pair[0]+ ', ' + pair[1]);
}
Example 3: angular formData print values
for (let [key, value] of formData.entries()) {
console.log(`${key}: ${value}`);
}