fix(async-map/asyncMapSettled): fix hasError condition
This commit is contained in:
parent
cdfeb094b3
commit
f16e29c63e
@ -36,7 +36,7 @@ exports.asyncMapSettled = function asyncMapSettled(iterable, mapFn, thisArg = it
|
||||
}
|
||||
}
|
||||
const onValue = (i, value) => {
|
||||
const hasError = result !== undefined
|
||||
const hasError = result === undefined
|
||||
if (!hasError) {
|
||||
result[i] = value
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user