nullthrows
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

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.

Package Sidebar

Install

npm i nullthrows

Weekly Downloads

4,476,172

Version

1.1.1

License

MIT

Unpacked Size

2.84 kB

Total Files

6

Last publish

Collaborators

  • zertosh
  • yungsters