▲ Exploring Rx Operators: flatMap at blog.thoughtram.io▼4 up and 0 down, posted by PascalPrecht 3036 days ago 1 comment
tracker1 3036 days ago. link 1 point ▲ ▼flatmap is just map + reduce invoices .map(inv => inv.positions) .reduce((a, p) => a.concat(p || []), []); ex: function flatmap(object, mapper) { return object.map(mapper) .reduce((agg, ary) => agg.concat(ary || []), []) }