It really annoys me that there's no way to get the final return value from an iterator when using either the for ... of ... loop or Array.fromAsync(). I'm not sure what the syntax should be, but I find using iterator.next() to do that makes the code much harder to understand.
It really annoys me that there's no way to get the final return value from an iterator when using either the
for ... of ...loop orArray.fromAsync(). I'm not sure what the syntax should be, but I find using iterator.next() to do that makes the code much harder to understand.