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 8638a6e commit 97e26e5Copy full SHA for 97e26e5
src/utils/promise-any.js
@@ -2,8 +2,6 @@
2
3
const reverse = (promise) => new Promise((resolve, reject) => Promise.resolve(promise).then(reject, resolve))
4
5
-Promise.any = function (iterable) {
6
- return reverse(Promise.all([...iterable].map(reverse)))
7
-}
+Promise.any = (iterable) => reverse(Promise.all([...iterable].map(reverse)))
8
9
export default Promise
0 commit comments