no message

This commit is contained in:
A1300399510
2024-05-15 12:05:24 +08:00
parent e2dd1310d3
commit a2b20f1738
917 changed files with 203 additions and 98762 deletions

View File

@@ -1,26 +0,0 @@
import baseIteratee from './_baseIteratee.js';
import baseSortedUniq from './_baseSortedUniq.js';
/**
* This method is like `_.uniqBy` except that it's designed and optimized
* for sorted arrays.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Array
* @param {Array} array The array to inspect.
* @param {Function} [iteratee] The iteratee invoked per element.
* @returns {Array} Returns the new duplicate free array.
* @example
*
* _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);
* // => [1.1, 2.3]
*/
function sortedUniqBy(array, iteratee) {
return (array && array.length)
? baseSortedUniq(array, baseIteratee(iteratee, 2))
: [];
}
export default sortedUniqBy;