Falsy
type-alias
stable
A simple type to represent a gamut of "falsy" values... with a notable exception: NaN
is "falsy" however, it is not and cannot be typed via TypeScript. See comments here: https://github.com/microsoft/TypeScript/issues/28682#issuecomment-707142417
type Falsy = null | undefined | false | 0 | -0 | 0n | '';
© 2015–2021 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors.
Code licensed under an Apache-2.0 License. Documentation licensed under CC BY 4.0.
https://rxjs.dev/api/index/type-alias/Falsy