isTruthy
function isTruthy<T>(x): x is T;Check if a value is not falsy.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”Falsy | T
The value to check
Returns
Section titled “Returns”x is T
true when the value is not falsy