feat: helper fxn to check null vals

This commit is contained in:
karishmas6
2024-06-05 23:39:55 +05:30
parent 4af7caf0aa
commit 0dd469eae6

View File

@@ -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;
}
};