We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d9c545 commit 155fd77Copy full SHA for 155fd77
src/isNullOrUndefined.ts
@@ -2,6 +2,6 @@
2
* Detects whether a given value is null or undefined
3
*/
4
// tslint:disable-next-line: no-any
5
-export function isNullOrUndefined(value: any): boolean {
+export function isNullOrUndefined(value: any): value is null | undefined {
6
return value === null || value === undefined;
7
}
0 commit comments