mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Bump to v4.6.0.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
define(['./_baseIteratee', './_basePullAllBy'], function(baseIteratee, basePullAllBy) {
|
||||
define(['./_baseIteratee', './_basePullAll'], function(baseIteratee, basePullAll) {
|
||||
|
||||
/**
|
||||
* This method is like `_.pullAll` except that it accepts `iteratee` which is
|
||||
* invoked for each element of `array` and `values` to generate the criterion
|
||||
* by which uniqueness is computed. The iteratee is invoked with one argument: (value).
|
||||
* by which they're compared. The iteratee is invoked with one argument: (value).
|
||||
*
|
||||
* **Note:** Unlike `_.differenceBy`, this method mutates `array`.
|
||||
*
|
||||
@@ -24,7 +24,7 @@ define(['./_baseIteratee', './_basePullAllBy'], function(baseIteratee, basePullA
|
||||
*/
|
||||
function pullAllBy(array, values, iteratee) {
|
||||
return (array && array.length && values && values.length)
|
||||
? basePullAllBy(array, values, baseIteratee(iteratee))
|
||||
? basePullAll(array, values, baseIteratee(iteratee))
|
||||
: array;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user