isRepeat (arr) {
let hash = {}
for (let i in arr) {
if (hash[arr[i]]) {
return true
}
hash[arr[i]] = true
}
return false
}
// 可对数组中嵌套数组进行查重
原文:https://www.cnblogs.com/lizqhngs/p/12715099.html