JavaScript 数组去重,并按大小排序
console.log(noRepeat([-2, 1, -3, 4, -1, 2, 1, -5, 4]));//[4, 2, 1, -1, -2, -3, -5]console.log(noRepeat([-14, 10, -13, 4, -21, 2, 1, -5, 4])); //[10, 4, 2, 1, -5, -13, -14, -21]//数组去重function noR...