In certain places I have iterators on which I would like to map or filter, but have to convert them to an array first, causing an extra iteration without any use.
There is an active TC39 working group around this, but that has not yet landed in main ts, so I've just added some snippets until it's available in plain ts.
In certain places I have iterators on which I would like to map or filter, but have to convert them to an array first, causing an extra iteration without any use.
There is an active TC39 working group around this, but that has not yet landed in main ts, so I've just added some snippets until it's available in plain ts.