mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Bump to v4.16.5.
This commit is contained in:
@@ -21,9 +21,8 @@ import baseUniq from './_baseUniq.js';
|
||||
* // => [{ '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) : [];
|
||||
}
|
||||
|
||||
export default uniqWith;
|
||||
|
||||
Reference in New Issue
Block a user