let checkedObject=[
{id:1,selected:false},
{id:2,selected:true},
]
var result = checkedObject.some(item => item.selected === true)
//判断checkedObject里是否有selected 为true的,返回true或false
let id=8
let disabledIds=[1,2]
var result=disabledIds.includes(id)
//判断disabledIds里是否有id,返回true或false