vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Function objectEquals

    • 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

      • Optionala: unknown

        Object to which object b is compared

      • Optionalb: unknown

        Object to which object a is compared

      • Optionaloptions: ObjectEqualsOptions

        Additional options to control the comparison

      Returns boolean

      true if objects a and b are equal otherwise false.