Skip to content

isNullishFilled

Type guard that detects an NullishFilled.

Interactive example

Syntax

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

Parameters

  • input: Either coming from nullish or nullishFilled.

Return value

true if the encapsulated information is defined.

See also

Released under the MIT license.