@gmjs/nullish-checks
v0.0.1
Published
nullish-checks
Downloads
1
Readme
Nullish checks
Guard functions for checking nullish/non-nullish values.
Installation
npm install --save @gmjs/nullish-checks
Usage
function isNullish<T>(value: T): value is T extends null | undefined ? T : never;
function isNotNullish<T>(value: T): value is T extends null | undefined ? never : T;