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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    4,332,169
    • latest
  • 1.1.0
    1,005
    • next

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    4,332,169
  • 1.1.0
    1,005
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    10
  • 1.0.0
    171

Package Sidebar

Install

npm i nullthrows

Weekly Downloads

4,333,355

Version

1.1.1

License

MIT

Unpacked Size

2.84 kB

Total Files

6

Last publish

Collaborators

  • zertosh
  • yungsters