mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Fix _.differenceBy doc example. [ci skip]
This commit is contained in:
@@ -5021,8 +5021,8 @@
|
|||||||
* // => [3.1, 1.3]
|
* // => [3.1, 1.3]
|
||||||
*
|
*
|
||||||
* // using the `_.property` callback shorthand
|
* // using the `_.property` callback shorthand
|
||||||
* _.differenceBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');
|
* _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');
|
||||||
* // => [{ 'x': 1 }, { 'x': 2 }]
|
* // => [{ 'x': 2 }]
|
||||||
*/
|
*/
|
||||||
var differenceBy = restParam(function(array, values) {
|
var differenceBy = restParam(function(array, values) {
|
||||||
var iteratee = last(values);
|
var iteratee = last(values);
|
||||||
|
|||||||
Reference in New Issue
Block a user