Skip to content

Commit df9e4ed

Browse files
committed
Improve trampoline solution.
1 parent 9aa718d commit df9e4ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problems/trampoline/solution.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
function repeat(operation, num) {
2-
if (num <= 0) return
32
return function() {
3+
if (num <= 0) return
44
operation()
55
return repeat(operation, --num)
66
}

0 commit comments

Comments
 (0)