method FormBody.get
FormBody.get(name: string): FormValue | undefined

Returns the FIRST value for a name, or undefined when the name is absent — the web standard's get, with undefined (narrowable) in place of null.

Parameters

name: string

The form field name

Return Type

FormValue | undefined

The first value, or undefined

Usage

import { type FormBody } from "common/src/index.ts";