Skip to main content
Module

x/rxjs/mod.ts>Falsy

Deno port of RXJS
Latest
type alias Falsy
import { type Falsy } from "https://deno.land/x/rxjs@v1.0.2/mod.ts";

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

definition:
| null
| undefined
| false
| 0
| -0
| 0
| ""