mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -25,7 +25,7 @@ import last from './last.js';
|
||||
* _.unionWith(objects, others, _.isEqual);
|
||||
* // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
|
||||
*/
|
||||
var unionWith = baseRest(function(arrays) {
|
||||
var unionWith = baseRest(arrays => {
|
||||
var comparator = last(arrays);
|
||||
comparator = typeof comparator == 'function' ? comparator : undefined;
|
||||
return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);
|
||||
|
||||
Reference in New Issue
Block a user