mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Bump to v4.11.2.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define(['./_baseIteratee', './_baseSortedUniqBy'], function(baseIteratee, baseSortedUniqBy) {
|
||||
define(['./_baseIteratee', './_baseSortedUniq'], function(baseIteratee, baseSortedUniq) {
|
||||
|
||||
/**
|
||||
* This method is like `_.uniqBy` except that it's designed and optimized
|
||||
@@ -18,7 +18,7 @@ define(['./_baseIteratee', './_baseSortedUniqBy'], function(baseIteratee, baseSo
|
||||
*/
|
||||
function sortedUniqBy(array, iteratee) {
|
||||
return (array && array.length)
|
||||
? baseSortedUniqBy(array, baseIteratee(iteratee))
|
||||
? baseSortedUniq(array, baseIteratee(iteratee))
|
||||
: [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user