Skip to content

Commit

Permalink
replaced for-of
Browse files Browse the repository at this point in the history
  • Loading branch information
synapse committed Jun 13, 2024
1 parent ef96fde commit 562b4a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,8 @@ function compareBranch(
comparedObjects.add(actual);

// Check if all keys and values recursively match
for (const key of keysActual) {
for (let i = 0; i < keysActual.length; i++) {
const key = keysActual[i];
if (
!keysExpected.includes(key) ||
!compareBranch(actual[key], expected[key], loose, comparedObjects)
Expand Down

0 comments on commit 562b4a4

Please sign in to comment.