mirror of
https://github.com/movie-web/movie-web.git
synced 2024-06-03 04:48:45 +02:00
6 lines
119 B
TypeScript
6 lines
119 B
TypeScript
export function isNotNull<T>(obj: T | null): obj is T {
|
|
return obj != null;
|
|
}
|
|
|
|
export type ValuesOf<T> = T[keyof T];
|