mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-14 00:26:51 +08:00
6 lines
186 B
TypeScript
6 lines
186 B
TypeScript
export const isEqual = (a: any, b: any) => {
|
|
if (typeof a !== typeof b) return false;
|
|
if (typeof a === 'object') return JSON.stringify(a) === JSON.stringify(b);
|
|
return a === b;
|
|
};
|