标签:turn return inf mamicode his length class bsp 去重
代码展示:
Array.prototype.delRepeat = function () { var hash= {}, arr = [], len = this.length; for (var i = 0; i < len; i++) { if (!hash[this[i]]) { hash[this[i]] = "a"; arr.push(this[i]); } } return arr; }
效果展示:
标签:turn return inf mamicode his length class bsp 去重
原文地址:https://www.cnblogs.com/punisher999/p/12318304.html