isOptionalEmpty
Type guard that detects an EitherOptionalEmpty.
Interactive example
Syntax
typescript
function isOptionalEmpty<
GenericInput extends unknown
>(
input: GenericInput
): input is Extract<GenericInput, EitherOptionalEmpty>;Parameters
input:Eithercoming fromoptional.
Return value
true if the value is undefined.
