capital-t-null-throws
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

nullThrows

It really seems like the T should be capitalized, so now it is. (capital-t-null-throws on npm)

Created by jones @ Subsecond. Based on the nullthrows library by zertosh.

A flow typed utility that accepts value (e.g. nullThrows(value)) and throws if value is null or undefined, otherwise it returns value.

Readme

Keywords

Package Sidebar

Install

npm i capital-t-null-throws

Weekly Downloads

3

Version

2.0.0

License

MIT

Unpacked Size

2.99 kB

Total Files

6

Last publish

Collaborators

  • jonesnxt