nullthrows

flow typed nullthrows


Keywords
assert, flow, invariant, nullthrows
License
MIT
Install
npm install nullthrows@1.0.1

Documentation

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.