nullthrows

v1.1.1
flow typed nullthrows
assert flow invariant nullthrows

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.

npm i nullthrows

Metadata

  • MIT
  • Whatever
  • Andres Suarez
  • released 12/10/2018

Downloads

Maintainers