UNPKG

mobx-bonsai

Version:

A fast lightweight alternative to MobX-State-Tree + Y.js two-way binding

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;