mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Fix _.differenceBy doc example. [ci skip]
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user