mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Bump to v4.16.5.
This commit is contained in:
@@ -24,9 +24,8 @@ define(['./_baseUniq'], function(baseUniq) {
|
||||
* // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]
|
||||
*/
|
||||
function uniqWith(array, comparator) {
|
||||
return (array && array.length)
|
||||
? baseUniq(array, undefined, comparator)
|
||||
: [];
|
||||
comparator = typeof comparator == 'function' ? comparator : undefined;
|
||||
return (array && array.length) ? baseUniq(array, undefined, comparator) : [];
|
||||
}
|
||||
|
||||
return uniqWith;
|
||||
|
||||
Reference in New Issue
Block a user