Skip to content

Commit

Permalink
changing to Arrow functions since doesnt make sense to have a FE in t…
Browse files Browse the repository at this point in the history
…hat model
  • Loading branch information
Luciano Franca authored and Luciano Franca committed Oct 26, 2016
1 parent 8638a6e commit 97e26e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/promise-any.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

const reverse = (promise) => new Promise((resolve, reject) => Promise.resolve(promise).then(reject, resolve))

Promise.any = function (iterable) {
return reverse(Promise.all([...iterable].map(reverse)))
}
Promise.any = (iterable) => reverse(Promise.all([...iterable].map(reverse)))

export default Promise

0 comments on commit 97e26e5

Please sign in to comment.