This commit is contained in:
2023-03-20 17:28:07 +08:00
parent a7606b1f20
commit bff5199726
42 changed files with 5202 additions and 467 deletions

View File

@@ -240,3 +240,16 @@ export async function blobValidate(data) {
return true;
}
}
export function isNullOrEmpty(val) {
if (val === null || val === undefined) {
return true
} else if (val === {} || Object.keys(val).length === 0) {
return true
} else if (val.length === 0) {
return true
} else {
return false
}
}