MCPcopy Create free account
hub / github.com/bewcloud/bewcloud / getFormDataField

Function getFormDataField

public/ts/utils/form.ts:44–46  ·  view source on GitHub ↗
(formData: FormData, field: string)

Source from the content-addressed store, hash-verified

42}
43
44export function getFormDataField(formData: FormData, field: string) {
45 return ((formData.get(field) || '') as string).trim();
46}
47
48export function getFormDataFieldArray(formData: FormData, field: string) {
49 return ((formData.getAll(field) || []) as string[]).map((value) => value.trim());

Callers 10

formFieldsFunction · 0.90
formFieldsFunction · 0.90
postFunction · 0.90
postFunction · 0.90
postFunction · 0.90
postFunction · 0.90
postFunction · 0.90
postFunction · 0.90
postFunction · 0.90
generateFieldHtmlFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected