1
0
mirror of synced 2025-12-20 18:36:31 -05:00
Files
docs/components/lib/ExcludesNull.ts
Mike Surowiec 85b48a3795 Rename hooks/lib files to .ts (#20488)
* rename hooks to .ts

* rename lib files to ts
2021-07-26 14:37:21 +00:00

4 lines
77 B
TypeScript

export function ExcludesNull<T>(x: T | null): x is T {
return x !== null
}