Function compareObjects

  • This function compares two objects by checking if their keys and values are equal. It can handle nested objects as well.

    Parameters

    Returns boolean

    • Returns true if the objects have the same keys and values, false otherwise.

    Example

    compareObject({a: 2}, {a: 2}); // true

    compareObject({a: 2}, {a: 23}); // false

    compareObject({a: {b: 2}}, {a: {b: 2}}); // true

Generated using TypeDoc