Skip to content

isNullishFilled

Type guard that detects an EitherNullishFilled.

Interactive example

Syntax

typescript
function isNullishFilled<
	GenericInput extends unknown
>(
  input: GenericInput
): input is Extract<GenericInput, EitherNullishFilled>;

Parameters

  • input: Either coming from nullish or nullishFilled.

Return value

true if the encapsulated information is defined.

See also

Released under the MIT license.