数组合并去重排序
const arr1 = [54, 67, 89, 1, 4, 3, 5, 0, 0, 3]
const arr2 = [5, 5, 6, 7, 8, 3, 2, 5, 7, 453, 54]
function handle(a,b){
let arr = Array.from(new Set(a.concat(b)))
for (let i = 0; i < arr.length; i++) {
for (let j = 0; j < arr.length-1-i; j++) {
if (arr[j]>arr[j+1]) {
arr[j]=[arr[j+1],arr[j+1]=arr[j]][0]
}
}
}
return arr
}
console.log(handle(arr1,arr2));