nullthrows
v1.1.1
- Types
- ESM
- CJS
- License
- MIT
- Deps
- 0
- Install Size
- 2.8 kB/-
- Vulns
- 0
- Published
$
npm install nullthrows$
pnpm add nullthrows$
yarn add nullthrows$
bun add nullthrows$
deno add npm:nullthrows$
vlt install nullthrowsnullthrows
A flow typed utility that accepts value (e.g. nullthrows(value)) and throws if value is null or undefined, otherwise it returns value.
Also see invariant.