mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Correct _.pullAllBy doc example. [ci skip]
This commit is contained in:
@@ -5587,11 +5587,11 @@
|
|||||||
* @returns {Array} Returns `array`.
|
* @returns {Array} Returns `array`.
|
||||||
* @example
|
* @example
|
||||||
*
|
*
|
||||||
* var array = [1, 2, 3, 1, 2, 3];
|
* var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
|
||||||
*
|
*
|
||||||
* _.pull(array, [2, 3]);
|
* _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], function(o) { return o.x; });
|
||||||
* console.log(array);
|
* console.log(array);
|
||||||
* // => [1, 1]
|
* // => [{ 'x': 2 }]
|
||||||
*/
|
*/
|
||||||
function pullAllBy(array, values, iteratee) {
|
function pullAllBy(array, values, iteratee) {
|
||||||
return (array && array.length && values && values.length)
|
return (array && array.length && values && values.length)
|
||||||
|
|||||||
Reference in New Issue
Block a user