2.0.0 • Published 3 years ago
capital-t-null-throws v2.0.0
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.
2.0.0
3 years ago