Skip to content

isNullishEmpty ​

Type guard detecting an NullishEmpty.

Interactive example ​

Syntax ​

typescript
function isNullishEmpty<
	GenericInput extends unknown
>(
  input: GenericInput
): input is Extract<GenericInput, NullishEmpty>;

Parameters ​

  • input: Either coming from the nullish helpers.

Return value ​

true if the wrapped value is null or undefined.

See also ​

Released under the MIT license.