数组去重、去字符串、去undefined、去null 并重新排序
let arr2 = [1,2,3,3,5,12,'a','b',4,'c',4,undefined,null,'',{a:2}];
let ary2 = arr2.filter(item => {
return typeof(item) == 'number'
})
ary2 = Array.from(new Set(ary2)).sort((a,b) => {
return a - b;
})
console.log(ary2);
有错误请指出~~~