Javascript – How to filter and map nested array in a new data model?
I have an object which contains an array, inside this array I want to filter the objects based on a type. I got this working with .filter. Then I want to add a property (array) of this object into a…