Interface FormData
interface FormData {
[iterator](): FormDataIterator<[string, FormDataEntryValue]>;
append(name: string, value: string | Blob): void;
append(name: string, value: string): void;
append(name: string, blobValue: Blob, filename?: string): void;
delete(name: string): void;
entries(): FormDataIterator<[string, FormDataEntryValue]>;
forEach(callbackfn: ((value: FormDataEntryValue, key: string, parent: FormData) => void), thisArg?: any): void;
get(name: string): FormDataEntryValue;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
keys(): FormDataIterator<string>;
set(name: string, value: string | Blob): void;
set(name: string, value: string): void;
set(name: string, blobValue: Blob, filename?: string): void;
values(): FormDataIterator<FormDataEntryValue>;
}
[iterator](): FormDataIterator<[string, FormDataEntryValue]>;
append(name: string, value: string | Blob): void;
append(name: string, value: string): void;
append(name: string, blobValue: Blob, filename?: string): void;
delete(name: string): void;
entries(): FormDataIterator<[string, FormDataEntryValue]>;
forEach(callbackfn: ((value: FormDataEntryValue, key: string, parent: FormData) => void), thisArg?: any): void;
get(name: string): FormDataEntryValue;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
keys(): FormDataIterator<string>;
set(name: string, value: string | Blob): void;
set(name: string, value: string): void;
set(name: string, blobValue: Blob, filename?: string): void;
values(): FormDataIterator<FormDataEntryValue>;
}
Methods
[iterator]
- [iterator](): FormDataIterator<[string, FormDataEntryValue]>
Returns FormDataIterator<[string, FormDataEntryValue]>
append
delete
entries
- entries(): FormDataIterator<[string, FormDataEntryValue]>
Returns an array of key, value pairs for every entry in the list.
Returns FormDataIterator<[string, FormDataEntryValue]>
forEach
- for
Each (callbackfn, thisArg?): void Parameters
- callbackfn: ((value: FormDataEntryValue, key: string, parent: FormData) => void)
- (value, key, parent): void
Parameters
- value: FormDataEntryValue
- key: string
- parent: FormData
Returns void
Optional
thisArg: any
Returns void
- callbackfn: ((value: FormDataEntryValue, key: string, parent: FormData) => void)
get
- get(name): FormDataEntryValue
Parameters
- name: string
Returns FormDataEntryValue
getAll
- get
All (name): FormDataEntryValue[] Parameters
- name: string
Returns FormDataEntryValue[]
has
keys
- keys(): FormDataIterator<string>
Returns a list of keys in the list.
Returns FormDataIterator<string>
set
values
- values(): FormDataIterator<FormDataEntryValue>
Returns a list of values in the list.
Returns FormDataIterator<FormDataEntryValue>
MDN Reference