应该可以吧
function arraysSimilar(arr1, arr2){
let flag = false;
for(var i=0;i<arr1.length;i++){
var type1 = Object.property.toString().call(arr1[i])
for(var j=0;j<arr2.length;j++){
var type2 = Object.property.toString().call(arr2[i])
if(type1 == type2){
flag = true
break;
}
if(flag){
continue
} else {
break
}
}
}
}
return falg
}