We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Maybe
1 parent 2af7ff0 commit 926f381Copy full SHA for 926f381
JavaScript/3-closure.js
@@ -12,8 +12,8 @@ function maybe(x) {
12
13
// Usage
14
15
-maybe(5)()(console.log);
+/*maybe(5)()(console.log);
16
maybe(5)(x => ++x)(console.log);
17
maybe(5)(x => x * 2)(console.log);
18
-maybe(null)(x => x * 2)(console.log);
19
-maybe(5)(x => x * 2)(x => ++x)(console.log);
+maybe(null)(x => x * 2)(console.log);*/
+maybe(5)(x => x * 2)()(console.log);
0 commit comments