Skip to content

isTruthy

function isTruthy<T>(x): x is T;

Check if a value is not falsy.

T

Falsy | T

The value to check

x is T

true when the value is not falsy