Lodash.unionWith

This method is like _.union except that it accepts comparator which is invoked to compare elements of arrays. Result values are chosen from the first array in which the value occurs. The comparator is invoked with two arguments: (arrVal, othVal).

struct Lodash
nothrow @trusted @safe ref
unionWith
(
T
)
(
auto ref T values
,
auto ref U comparator = U.init
)

Return Value

Type: auto ref

- Lodash chained on (Array): the new array of combined values.

Meta