array equality comparing fun

This commit is contained in:
Jean-Emmanuel 2015-10-01 16:29:00 +02:00
parent 955364a019
commit 8960339fc9

View file

@ -218,3 +218,11 @@ mapToScale = function(value,rangeIn,rangeOut,reverse) {
return value
}
function isSame(a1, a2){
if (a1.sort && a2.sort) {
return !(a1.sort() > a2.sort() || a1.sort() < a2.sort());
} else {
return a1==a2
}
}