• Compare 2 objects for quality by comparing the values of the properties of the objects instead of only reference-equality. For none-object (primitives such as string, integer, etc) a primitiveCompare can be specified; it no primitiveCompare is specified equality for primitives defaults a ===-comparison.

    When comparing objects a objectCompare can be specified; if no objectCompare is specified the objectEquals-function is used to compare the objects.

    If there is a self-referencing loop in the object graph the function will throw an error.

    Parameters

    • Optional a: unknown

      Object to which object b is compared

    • Optional b: unknown

      Object to which object a is compared

    • Optional options: ObjectEqualsOptions

      Additional options to control the comparison

    Returns boolean

    true if objects a and b are equal otherwise false.