Δ
Size: a a a
Δ
IS
function difference(setA, setB) {
var _difference = new Set(setA);
for (var elem of setB) {
_difference.delete(elem);
}
return _difference;
}
const result = [...diffrence(new Set(first), new Set(second))];
IS
IS
IS
RK
RK
IS
Δ
Δ
К
К
M
IS
[...new Set(first.concat(second))].filter(el => first.includes(el) ^ second.includes(el))
так?IS
IS
Δ
Δ
Δ