Determines whether a type is definitely falsy. This function doesn't unwrap union types.
declare const type: ts.Type;if (isFalsyType(type)) { // ...} Copy
declare const type: ts.Type;if (isFalsyType(type)) { // ...}
Determines whether a type is definitely falsy. This function doesn't unwrap union types.