arrayIsEqual(arr1,arr2){
let arrFlag =false;
if(arr1.length!= arr2.length){
return arrFlag
}
arr1.forEach((element,index) => {
if(arr1.indexOf(arr2[index])!=-1&&arr2.indexOf(element)!=-1){
arrFlag =true;
}
});
return arrFlag
}
arrayIsEqual(arr1,arr2){
let arrFlag =false;
if(arr1.length!= arr2.length){
return arrFlag
}
arr1.forEach((element,index) => {
if(arr1.indexOf(arr2[index])!=-1&&arr2.indexOf(element)!=-1){
arrFlag =true;
}
});
return arrFlag
}