oneuptime/Common/Utils/ObjectUtil.ts

9 lines
223 B
TypeScript

import { GlobalObject } from "../Types/Object";
export default class ObjectUtil {
public static isEmpty(object: GlobalObject): boolean {
// check if object is empty
return Object.keys(object).length === 0;
}
}