capital-t-null-throws
v2.0.0
Published
nullThrows with a capital T
Downloads
9
Readme
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
.