1 var eq = require('./eq');
4 * The base implementation of `_.sortedUniqBy` without support for iteratee
8 * @param {Array} array The array to inspect.
9 * @param {Function} [iteratee] The iteratee invoked per element.
10 * @returns {Array} Returns the new duplicate free array.
12 function baseSortedUniqBy(array, iteratee) {
14 length = array.length,
16 computed = iteratee ? iteratee(value) : value,
21 while (++index < length) {
23 computed = iteratee ? iteratee(value) : value;
25 if (!eq(computed, seen)) {
27 result[++resIndex] = value;
33 module.exports = baseSortedUniqBy;