数组去重最优解: Array.prototype.unique = function () { var tmp = new Map(); return this.filter(item => { return !tmp.has(item) && tmp.set(item, 1); }) }
数组去重最优解: Array.prototype.unique = function () { var tmp = new Map(); return this.filter(item => { return !tmp.has(item) && tmp.set(item, 1); }) }