Skip to content

Commit

Permalink
Fix keys retrieval in objectsEqual function
Browse files Browse the repository at this point in the history
  • Loading branch information
ralfstx committed Dec 29, 2023
1 parent 39272c5 commit fa6baa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ function arraysEqual(ar1, ar2) {
function objectsEqual(obj1, obj2) {
const val1 = Object.values(obj1);
const val2 = Object.values(obj2);
const keys1 = Object.values(obj1);
const keys2 = Object.values(obj2);
const keys1 = Object.keys(obj1);
const keys2 = Object.keys(obj2);

return arraysEqual(val1, val2) && arraysEqual(keys1, keys2);
}
Expand Down

0 comments on commit fa6baa8

Please # to comment.