How to filter and get array by id?

后端 未结 0 1198
陌清茗
陌清茗 2021-01-29 09:47
const id = [1, 4, 10]
const data =[{id: 1, name: Banana}, {id: 2, name: Mango}, {id: 3, name: Chili}, {id: 4, name: WaterMelon},  {id: 10, name: WaterMelon}]


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题