CommentAug 11, 2019Both answers are fine, also you can use array.reduce() and doesn’t need two operations(map & filter)Create Array from Array of Objects