Fix _.differenceBy doc example. [ci skip]

This commit is contained in:
John-David Dalton
2015-10-11 23:30:26 -07:00
parent 02398e319d
commit 74137d4eab

View File

@@ -5021,8 +5021,8 @@
* // => [3.1, 1.3]
*
* // using the `_.property` callback shorthand
* _.differenceBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
* // => [{ 'x': 1 }, { 'x': 2 }]
* _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
* // => [{ 'x': 2 }]
*/
var differenceBy = restParam(function(array, values) {
var iteratee = last(values);