mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-21 22:05:43 -04:00
Convert Media Management settings to TypeScript
(cherry picked from commit 27f81117ed188712600d8daf3ccb5121f9808458)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
function isEmpty<T extends object>(obj: T | undefined) {
|
||||
if (!obj) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (const prop in obj) {
|
||||
if (Object.hasOwn(obj, prop)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
export default isEmpty;
|
||||
Reference in New Issue
Block a user