Skip to content

Commit 3bd1995

Browse files
committed
Update examples
1 parent 5d6126a commit 3bd1995

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

JavaScript/4-closure-recursive.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,4 @@ const a3 = a2(3);
1616
const a4 = a1(1);
1717
const a5 = a2(10);
1818

19-
console.log('--------');
20-
2119
add(1)(4)(8)(8);

JavaScript/6-functor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function add(x) {
77
return add(z);
88
};
99
f.map = function(fn) {
10-
fn(x);
10+
return fn(x);
1111
};
1212
return f;
1313
}

0 commit comments

Comments
 (0)