Formalize which value is picked by _.unionBy and _.unionWith to pick the result from the first array in which it occurs.

This commit is contained in:
Brandon Horst
2016-06-16 13:08:04 -04:00
committed by John-David Dalton
parent 9cabc7c222
commit 9605072200
2 changed files with 24 additions and 2 deletions

View File

@@ -7789,7 +7789,8 @@
/**
* This method is like `_.union` except that it accepts `iteratee` which is
* invoked for each element of each `arrays` to generate the criterion by
* which uniqueness is computed. The iteratee is invoked with one argument:
* which uniqueness is computed. Result values are chosen from the first
* array in which the value occurs. The iteratee is invoked with one argument:
* (value).
*
* @static
@@ -7819,7 +7820,8 @@
/**
* This method is like `_.union` except that it accepts `comparator` which
* is invoked to compare elements of `arrays`. The comparator is invoked
* 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).
*
* @static