FormData.forEach()
The forEach() method of the FormData interface executes the provided callback function once for each key/value pair in the FormData object.
Syntax
forEach(callbackFn)
forEach(callbackFn, thisArg)
Parameters
callbackFn- : A function to execute for each entry in the object. The function will be passed the following arguments:
value- : The value of the current entry.
key- : The key of the current entry.
formData- : The
FormDataobject being traversed.
- : The
- : A function to execute for each entry in the object. The function will be passed the following arguments:
thisArgoptional- : A value to use as
thiswhen executingcallbackFn.
- : A value to use as
Return value
undefined