Function deepEquals

  • 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.

    Parameters

    • a: any

      First value to compare.

    • b: any

      Second value to compare.

    Returns boolean

    true if they are the equivalent, false otherwise.