array equality comparing fun
This commit is contained in:
parent
955364a019
commit
8960339fc9
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue