Skip to content

isBoolFalsy ​

Type guard that detects an BoolFalsy.

Interactive example ​

Syntax ​

typescript
function isBoolFalsy<
	GenericInput extends unknown>(
  input: GenericInput
): input is Extract<GenericInput, BoolFalsy>;

Parameters ​

  • input: Value coming from the boolean helpers.

Return value ​

true if the value is falsy (Left).

See also ​

Released under the MIT license.