JS merge array

how does JS merge two arrays so that if the two arrays have the same duplicate data, only one copy of the duplicate data will be retained? Online search did not see the answer, their own writing is also wrong, the level is not enough to ask for help

Mar.03,2021

        const arr1 = ['a','b','c'];
        const arr2 = ['1','2','b','3','c'];
        const arr3 = arr1.concat(arr2);

        const arr4 = new Set(arr3);
        console.log(Array.from(arr4));        //["a", "b", "c", "1", "2", "3"]
Menu