我有一个对象数组
[
{"title": "video01", "src":"/embed/video1","hero":"hero1"},
{"title": "video02", "src":"/embed/video2","hero":"hero1"},
{"title": "video03", "src":"/embed/video3","hero":"hero1"},
{"title": "video04", "src":"/embed/video4","hero":"hero2"},
{"title": "video05", "src":"/embed/video5","hero":"hero2"},
{"title": "video06", "src":"/embed/video6","hero":"hero3"},
{"title": "video07", "src":"/embed/video7","hero":"hero3"},
{"title": "video08", "src":"/embed/video8","hero":"hero3"}]
我需要返回 [hero1, hero2, hero3] 最好的方法是什么?
感谢你的帮助