how to speed up uniqBy method in javascript?

前端 未结 0 1766
悲哀的现实
悲哀的现实 2021-02-01 22:01

I\'ve implement uniqBy method as following.

Array.prototype.uniqBy = function (iteratee) {
  let uniques = [];
  for (let a of this) {
    const mappedUniques = u         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题