function arraysSimilar(arr1, arr2){
if(arr1 instanceof Array && arr2 instanceof Array){
if(arr1.length==arr2.length){
var match=true;
for(var j=0;j<arr1.length;j++){
if(match==true){
var op1=Object.prototype.toString.apply(arr1[j]);
if(arr1 instanceof Array && arr2 instanceof Array){
if(arr1.length==arr2.length){
var match=true;
for(var j=0;j<arr1.length;j++){
if(match==true){
var op1=Object.prototype.toString.apply(arr1[j]);
for(var i=0;i<arr2.length-j;i++){
match=false;
var op2=Object.prototype.toString.apply(arr2[i]);
if(op1===op2){
var arri=arr2.splice(i,1);
arr2.push(arri);
match=true;
break;
}
}
}else{
return match;
break;
}
}
return match;
}else{
return false;
}
}else{
return false;
}
}
match=false;
var op2=Object.prototype.toString.apply(arr2[i]);
if(op1===op2){
var arri=arr2.splice(i,1);
arr2.push(arri);
match=true;
break;
}
}
}else{
return match;
break;
}
}
return match;
}else{
return false;
}
}else{
return false;
}
}