.map method inside .map() what I'm doing is that I'm fetching array of data inside that array there is another array data example mainData = [{name : "xxxx"}, {"xxx" : "xxx"}, {media : [{mediaOne: "xxxx"}, {mediaTwo: "xxx"}]}] so How to get all inside media array data ?
Try .flatMap
at mainData or media ?
Обсуждают сегодня