比較二個array 的差異、相同、XOR

                    arr1=['a', 'b','e'];
                    arr2=['a', 'b', 'c', 'd'];
    
                    let t_and = arr1.filter(x => arr2.includes(x));
                    console.log(t_and);   // ["a","b"]
                    let t_cut = arr1.filter(x => !arr2.includes(x));
                    console.log(t_cut);   // ["e"]
                    let t_xor = arr1
                     .filter(x => !arr2.includes(x))
                     .concat(arr2.filter(x => !arr1.includes(x)));
                    console.log(t_xor);   // ["e","c","d"]
    

    輸出:

    ["a","b"]
    ["e"]
    ["e","c","d"]