ES6判断两个数组是否完全相等

let  listA = val;//当前选中数据
let  listB = this.plainOptions;//原始数据
if(listA.length === listB.length && listA.every(a => listB.some(b => a === b)) && listB.every(_b => listA.some(_a => _a === _b))){
    //to do 
}