feat: add smart update

This commit is contained in:
Justineo
2025-09-17 18:23:55 +08:00
committed by GU Yiling
parent f5e17356e8
commit 468f7dbfbd
5 changed files with 362 additions and 36 deletions

View File

@ -38,3 +38,7 @@ export function isSameSet<T>(a: T[], b: T[]): boolean {
return true;
}
export function isPlainObject(v: unknown): v is Record<string, unknown> {
return v != null && typeof v === "object" && !Array.isArray(v);
}