Correct _.pullAllBy doc example. [ci skip]

This commit is contained in:
John-David Dalton
2015-10-07 00:23:02 -07:00
parent a21b25f751
commit 2d3e64b51a

View File

@@ -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)