PHP
·
发表于 5年以前
·
阅读量:7709
const arr = [{ age: 3 }, { age: 4 }, { age: 5 }]
arr.some(item => { return item.age < 4 }) // true