@mocanvas/store · function

isRecordShallowEqual

declare function isRecordShallowEqual(a: UnknownRecord, b: UnknownRecord): boolean

Records are considered unchanged when every top-level value is identical, with props and meta compared one level deeper. Cheap enough to run on every put, and avoids no-op history entries.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.