摘要:
getArrayIndex(arr, obj) { var i = arr.length; while (i--) { if (arr[i] obj) { return i; } } return -1; }, 阅读全文
摘要:
ArrayIsEqual(arr1, arr2) { //判断2个数组是否相等 if (arr1 arr2) { //如果2个数组对应的指针相同,那么肯定相等,同时也对比一下类型 return true; } else { if (arr1.length != arr2.length) { retu 阅读全文
摘要:
handleIncludes(childArr, fatherArr) { return childArr.every(v => fatherArr.includes(v)); }, let target = this.handleIncludes(this.commonSignalList[n], 阅读全文