var arr = [ [1, 2, 2], [3, 4, 5, 5], [6, 7, 8, 9, [11, 12, [12, 13, [14] ] ] ], 10];
var newArr = Array.from(new Set(arr.flat(Infinity))).sort((a,b)=>{ return a-b})
es6对数组的操作
原文:https://www.cnblogs.com/luomingsong/p/12060600.html