We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
imteekay
Learn more about funding links in repositories.
Report abuse
1 parent f1cbc3f commit 0bdf1afCopy full SHA for 0bdf1af
javascript/lazy.js
@@ -0,0 +1,9 @@
1
+const sum = (a, b) => a + b;
2
+
3
+const result = sum(1 + 2, 3);
4
+console.log(result);
5
6
+const lazySum = (a, b) => () => a() + b();
7
8
+const lazyResult = lazySum(() => 1 + 2, () => 3)();
9
+console.log(lazyResult);
0 commit comments