HTML Diff
0 added 0 removed
Original 2026-01-01
Modified 2026-02-26
1 const numbers1 = [1, 2, 3]; const numbers2 = [101, 2, 1, 10]; const numbers3 = [2, 1]; const union = _.union(numbers1, numbers2, numbers3); console.log(union); // => [ 1, 2, 3, 101, 10 ] //получаем массив без повторений
1 const numbers1 = [1, 2, 3]; const numbers2 = [101, 2, 1, 10]; const numbers3 = [2, 1]; const union = _.union(numbers1, numbers2, numbers3); console.log(union); // => [ 1, 2, 3, 101, 10 ] //получаем массив без повторений