const arr = [
["Mallory", "Everest", "Mont Blanc", "Pillar Rock"],
["Mawson", "South Pole", "New Hebrides"],
["Hillary", "Everest", "South Pole"]
];
(function (array) {
let set = new Set()
for(let i = 0; i < array.length; i++){
for(let j = 1; j < arr[i].length; j++) {
set.add(arr[i][j])
}
}
const toponims = Array.from(set)
}(arr))