webstudio/ui/src/core/extensions/object.ts
2024-08-13 16:35:32 +03:00

6 lines
155 B
TypeScript

export const ObjectIsNotEmpty = (obj: Object | undefined) => {
if (obj === undefined) {
return false;
}
return Object.keys(obj).length !== 0;
};