UNPKG

mobx-keystone

Version:

A MobX powered state management solution based on data trees with first class support for TypeScript, snapshots, patches and much more

21 lines (20 loc) 610 B
/** * Deeply compares two values. * * Supported values are: * - Primitives * - Boxed observables * - Objects, observable objects * - Arrays, observable arrays * - Typed arrays * - Maps, observable maps * - Sets, observable sets * - Tree nodes (optimized by using snapshot comparison internally) * * Note that in the case of models the result will be false if their model IDs are different. * * @param a First value to compare. * @param b Second value to compare. * @returns `true` if they are the equivalent, `false` otherwise. */ export declare function deepEquals(a: any, b: any): boolean;