function isEqual(a, b){
return a.join() == b.join();
}
let a = ['J','a','v','a'];
let b = ['s','c','r','i','p','t'];
console.log(isEqual(a, b)); //false
var array1 = ["cat", "sum","fun", "run", "hut"];
var array2 = ["bat", "cat","dog","sun", "hut", "gut"];
console.log(array1.diff(array2));
echo ${Array1[@]} ${Array2[@]} | tr ' ' '
' | sort | uniq -u