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
    10,738,787
    • latest
  • 1.1.0
    5,463
    • next

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    10,738,787
  • 1.1.0
    5,463
  • 1.0.3
    7
  • 1.0.2
    8
  • 1.0.1
    109
  • 1.0.0
    6,864

Package Sidebar

Install

npm i nullthrows

Weekly Downloads

4,081,842

Version

1.1.1

License

MIT

Unpacked Size

2.84 kB

Total Files

6

Last publish

Collaborators

  • zertosh
  • yungsters