chore: app group optimizations (#1027)

This commit is contained in:
Mo
2022-05-16 21:14:18 -05:00
committed by GitHub
parent 754a189532
commit 62cf34e894
108 changed files with 1796 additions and 1187 deletions

View File

@@ -134,6 +134,16 @@ if (!IsWebPlatform && !IsDesktopPlatform) {
throw Error('Neither __WEB__ nor __DESKTOP__ is true. Check your configuration files.')
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function destroyAllObjectProperties(object: any): void {
for (const prop of Object.getOwnPropertyNames(object)) {
try {
delete object[prop]
// eslint-disable-next-line no-empty
} catch (error) {}
}
}
export function isDesktopApplication() {
return IsDesktopPlatform
}