Skip to content

Commit 5f94ceb

Browse files
authored
Merge pull request sadanandpai#41 from vishalpagey/patch-1
Corrected variable name
2 parents 4d2806a + c458a4d commit 5f94ceb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

challenges/objects-challenges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ function deepEqual(object1, object2) {
408408
for (const key of keys1) {
409409
const val1 = object1[key];
410410
const val2 = object2[key];
411-
const areObjects = val1 != null && typeof val1 === 'object' && val1 != null && typeof val2 === 'object';
411+
const areObjects = val1 != null && typeof val1 === 'object' && val2 != null && typeof val2 === 'object';
412412
if ((areObjects && !deepEqual(val1, val2)) || (!areObjects && val1 !== val2)) {
413413
return false;
414414
}

0 commit comments

Comments
 (0)