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.
1 parent 140b91a commit e33266cCopy full SHA for e33266c
2723. Add Two Promises/index.js
@@ -0,0 +1,9 @@
1
+const addTwoPromises = async (promise1, promise2) => {
2
+ return new Promise((resolve) => {
3
+ promise1.then((value) => {
4
+ promise2.then((value2) => {
5
+ resolve(value + value2)
6
+ })
7
8
9
+}
README.md
@@ -15,7 +15,7 @@
15
| Return Length of Arguments Passed | ✅ |
16
| Allow One Function Call | ✅ |
17
| Memoize | |
18
-| Add Two Promises | |
+| Add Two Promises | ✅ |
19
| Sleep | ✅ |
20
| Timeout Cancellation | |
21
| Interval Cancellation | |
0 commit comments