Closed hediet closed 2 years ago
Thanks for the bug report! I've released v1.117.2
, which fixes this issue.
How would you use flatMap
here ideally?
const combinedDiffs: { diff: RangeMapping; input: 1 | 2 }[] = baseRange.input1Diffs.flatMap((diffs) => {
return diffs.innerRangeMappings.map(diff => ({ diff, input: 1 as const }));
});
I've added .flatMap
conversion in v1.120.3
(available when there is a spread element). Thanks for the idea!
Convert to map ->
🐛
There is also flatMap!