74

数组去重

 4 years ago
source link: https://www.v2ex.com/t/584224
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
JavaScript - @wenjay - ## 数组去重```js Array.prototype.unique1 = function () { var n = []; //一个新的临时数组 for (var i

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK