Skip to content

Commit 52c7999

Browse files
committed
Add allSettled
1 parent 88b9b1c commit 52c7999

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

JavaScript/8-all.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const promises = [
88
fetch(baseUrl + '/city'),
99
];
1010

11-
Promise.all(promises)
11+
Promise.allSettled(promises)
12+
//Promise.all(promises)
1213
.then((values) => {
1314
console.log(values);
1415
})

0 commit comments

Comments
 (0)