fix(async-map): apply → call 😖

Fixes #3431
This commit is contained in:
Julien Fontanet 2018-09-20 10:04:09 +02:00
parent a0049bae8d
commit 62d48bd59d

View File

@ -16,7 +16,7 @@ import map from 'lodash/map'
const asyncMap = (collection, iteratee) => {
let then
if (collection != null && typeof (then = collection.then) === 'function') {
return then.apply(collection, collection => asyncMap(collection, iteratee))
return then.call(collection, collection => asyncMap(collection, iteratee))
}
let errorContainer