1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/ReactNativeClient/lib/services/commands/propsHaveChanged.ts

14 lines
294 B
TypeScript
Raw Normal View History

export default function propsHaveChanged(previous:any, next:any):boolean {
if (!previous && next) return true;
if (Object.keys(previous).length !== Object.keys(next).length) return true;
for (const n in previous) {
if (previous[n] !== next[n]) {
return true;
}
}
return false;
}