Skip to content

Commit

Permalink
some stylistic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Sep 26, 2021
1 parent 41f0354 commit 8e488ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core-js/internals/array-from-async.js
Expand Up @@ -22,8 +22,7 @@ module.exports = function fromAsync(asyncItems /* , mapfn = undefined, thisArg =
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
if (mapfn !== undefined) mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : undefined, 2);
var usingAsyncIterator = getMethod(O, ASYNC_ITERATOR);
var usingSyncIterator;
if (!usingAsyncIterator) usingSyncIterator = getIteratorMethod(O) || arrayIterator;
var usingSyncIterator = usingAsyncIterator ? undefined : getIteratorMethod(O) || arrayIterator;
var A = isConstructor(this) ? new this() : [];
var iterator = usingAsyncIterator
? getAsyncIterator(O, usingAsyncIterator)
Expand Down

0 comments on commit 8e488ce

Please sign in to comment.