fromJSIterator<T> function
Implementation
Iterable<T> fromJSIterator<T>(dynamic jsIterable) sync* {
while (true) {
final result = js_util.callMethod<IteratorResult<T>>(
jsIterable,
'next',
[],
);
if (result.done) {
break;
}
yield result.value;
}
}