Skip to content

Commit

Permalink
Merge 9a41cf8 into ba14ef2
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Sullivan committed Dec 30, 2019
2 parents ba14ef2 + 9a41cf8 commit da1b49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export async function next<T, U>(
*/
export function iter<T>(iterable: AnyIterable<T>): AnyIterator<T> {
return ((iterable as AsyncIterable<T>)[Symbol.asyncIterator] ||
(iterable as Iterable<T>)[Symbol.iterator])();
(iterable as Iterable<T>)[Symbol.iterator]).call(iterable);
}

/**
Expand Down

0 comments on commit da1b49c

Please sign in to comment.