mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-25 14:36:13 +01:00
11 lines
No EOL
320 B
Text
11 lines
No EOL
320 B
Text
function isEqual(val1, val2) {
|
|
if(!is_array(val1) && !is_array(val2)) return val1 == val2;
|
|
if(is_array(val1) ^ is_array(val2)) return false;
|
|
if(array_length(val1) != array_length(val2)) return false;
|
|
|
|
for( var i = 0, n = array_length(val1); i < n; i++ ) {
|
|
if(val1[i] != val2[i]) return false;
|
|
}
|
|
|
|
return true;
|
|
} |