mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-10-17 08:54:24 +00:00
feat azure fromhost (#302)
* feat azure fromhost * wip * wip * wip * wip * fix review comment * fix review comment * wip * wip
This commit is contained in:
1 parent
75e7785061
commit
08ab494cef
3 files changed
+220
-78
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user