Skip to content

Commit 6a4ed81

Browse files
committed
add comment to deep equal
1 parent eb46a46 commit 6a4ed81

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

chapter_four.js

+3
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ function recursiveNth(list, number) {
9797
else return recursiveNth(list.rest, number - 1)
9898
}
9999

100+
//deep equal
101+
100102
function deepEqual(a, b) {
101103
if (a === b) return true;
102104
else if (typeof a == 'object' && a != null && typeof b == 'object' && b != null) {
@@ -111,3 +113,4 @@ function deepEqual(a, b) {
111113
}
112114
else return false;
113115
}
116+

0 commit comments

Comments
 (0)