nullthrows

v1.1.1
  • Types
  • ESM
  • CJS
License
MIT
Deps
0
Install Size
2.8 kB/-
Vulns
0
Published

Get started

$npm install nullthrows
$pnpm add nullthrows
$yarn add nullthrows
$bun add nullthrows
$deno add npm:nullthrows
$vlt install nullthrows

Readme

nullthrows

Build Status

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.

Weekly DownloadsAcross all versions

Versions

1.1.1
latest
1.1.0
next