PHP
·
发表于 5年以前
·
阅读量:7640
const flag = [{age:1},{age:2}].some(v=>JSON.stringify(v)===JSON.stringify({age:2}))
console.log(flag)