• Serialize a form and return a plain object. If a form control with the same name appears more than once, the property will be converted to an array.

    Parameters

    • form: HTMLFormElement

    Returns Record<string, unknown>