for (let i = 0; i < a.length; i++) {
for (let k = i + 1; k < a.length; k++) {
if (a[i] != a[k]) {
//do stuff
}
}
}
var a1 = [1,2,3];
var a2 = [1,2,3];
console.log(a1==a2); // Returns false
console.log(JSON.stringify(a1)==JSON.stringify(a2)); // Returns true
echo ${Array1[@]} ${Array2[@]} | tr ' ' '
' | sort | uniq -u
var array1 = [4,8,9,10];
var array2 = [4,8,9,10];