Files
twenty/packages/twenty-front/src/utils/isEmptyObject.ts
Lucas Bordeau 687c9131f4 Feat/record optimistic effect (#3076)
* WIP

* WIP

* POC working on hard coded completedAt field

* Finished isRecordMatchingFilter, mock of pg_graphql filtering mechanism

* Fixed and cleaned

* Unregister unused optimistic effects

* Fix lint

* Fixes from review

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-20 20:31:48 +01:00

6 lines
164 B
TypeScript

import { isObject } from '@sniptt/guards';
export const isEmptyObject = (obj: any): obj is object => {
return isObject(obj) && Object.keys(obj).length === 0;
};