FormData.getAll()
The getAll()
method of the FormData
interface returns all the values associated with a given key from within a FormData
object.
Syntax
getAll(name)
Parameters
name
- : The name of the key you want to retrieve.
Return value
An array of FormDataEntryValue
items containing all values with the given key. If the key doesn't exist, an empty array is returned.