let arr3= [18, 24]; let arr4= [ {id: '1', name: '张三', age: 18}, {id: '2', name: '李四', age: 30}, {id: '3', name: '王五', age: 24}, {id: '4', name: '赵六', age: 18}, ]; let result = arr4.filter((item)=>{ return arr3.some(curVal => (curVal === item.age)) }) // console.log(result)