Skip to content

Commit 75bca16

Browse files
committed
matchingLeaves...
1 parent 4ba60ef commit 75bca16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/recursion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ const checkMatchingLeaves = (obj) => {
5353
return true;
5454

5555
// version 3 - working towards depth check, iterative
56-
const tree1 = { x: 1, y: 1, z: 1, xa: { xx: 1, xy: 1, xz: 1, zz: {a: { b: { z: 1, }, }, }, }, };
56+
const tree1 = { x: 1, y: 1, z: 1, xa: { xx: 1, xy: 1, xz: 1, zz: { a: { b: { z: 1, }, }, }, }, };
5757

58-
const x = Object.keys(tree1);
58+
const k = Object.keys(tree1);
5959

60-
console.log(x);
60+
console.log(k);
6161

6262
const anArray = []
6363

0 commit comments

Comments
 (0)