Skip to content

isNullableFilled

Type guard that checks that the nullable Either actually contains a value.

Interactive example

Syntax

typescript
function isNullableFilled<
	GenericInput extends unknown
>(
  input: GenericInput
): input is Extract<GenericInput, EitherNullableFilled>;

Parameters

  • input: Result of nullable.

Return value

true if the value is not null.

See also

Released under the MIT license.