feat: helper fxn to check null vals
This commit is contained in:
@@ -407,7 +407,12 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
|
||||
return null;
|
||||
}
|
||||
|
||||
function notEmpty<T>(value: T | null | undefined): value is T {
|
||||
return value !== null && value !== undefined;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user