This function compares two objects by checking if their keys and values are equal. It can handle nested objects as well.
The first object to compare.
The second object to compare.
compareObject({a: 2}, {a: 2}); // truecompareObject({a: 2}, {a: 23}); // falsecompareObject({a: {b: 2}}, {a: {b: 2}}); // true Copy
compareObject({a: 2}, {a: 2}); // truecompareObject({a: 2}, {a: 23}); // falsecompareObject({a: {b: 2}}, {a: {b: 2}}); // true
Generated using TypeDoc
This function compares two objects by checking if their keys and values are equal. It can handle nested objects as well.