Skip to main content

Function: isEmptyString()

isEmptyString(value: string | null | undefined): boolean

Defined in: shared/utils/formValidation.ts:247

Helper to check if a string is empty after trimming.

Parametersโ€‹

valueโ€‹

string | null | undefined

The string to check

Returnsโ€‹

boolean

True if the string is empty or only whitespace

Remarksโ€‹

Common pattern used throughout validation logic.