Files
twenty/packages/twenty-front/src/utils/isAnObject.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

4 lines
141 B
TypeScript

export const isAnObject = (obj: any): obj is object => {
return typeof obj === 'object' && obj !== null && Object.keys(obj).length > 0;
};