mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
🎨 database
This commit is contained in:
parent
cc4117c4e0
commit
dc7f9f6ef6
1 changed files with 1 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ export const looseJsonParse = (text: string) => {
|
|||
|
||||
export const objEquals = (a: any, b: any): boolean => {
|
||||
if (a === b) return true;
|
||||
if (typeof a === "number" && isNaN(a) && typeof b === "number" && isNaN(b)) return true;
|
||||
if (a instanceof Date && b instanceof Date) return a.getTime() === b.getTime();
|
||||
if (!a || !b || (typeof a !== "object" && typeof b !== "object")) return a === b;
|
||||
if (a.prototype !== b.prototype) return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue