feat azure fromhost (#302)

* feat azure fromhost

* wip

* wip

* wip

* wip

* fix review comment

* fix review comment

* wip

* wip
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2023-08-30 21:07:03 -04:00
1 parent 75e7785061
commit 08ab494cef
3 files changed
+220 -78

No files matched your search

+4
View File
@@ -41,6 +41,10 @@ export const hasLength = <Type>(
return hasValue(variable) && variable.length > minlength;
};
export const isNotBlank = (variable: string | null | undefined) => {
return hasValue(variable) && variable.length > 0;
};
export const isObject = (obj: unknown) => {
/** null | undefined | Array will be "object" so exclude them */
return typeof obj === "object" && hasValue(obj) && !Array.isArray(obj);