I\'ve implement uniqBy method as following.
Array.prototype.uniqBy = function (iteratee) { let uniques = []; for (let a of this) { const mappedUniques = u