mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
Remove references to _.
This commit is contained in:
@@ -4,13 +4,12 @@ import isArrayLikeObject from './isArrayLikeObject.js';
|
||||
import last from './last.js';
|
||||
|
||||
/**
|
||||
* This method is like `_.xor` except that it accepts `comparator` which is
|
||||
* This method is like `xor` except that it accepts `comparator` which is
|
||||
* invoked to compare elements of `arrays`. The order of result values is
|
||||
* determined by the order they occur in the arrays. The comparator is invoked
|
||||
* with two arguments: (arrVal, othVal).
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Array
|
||||
* @param {...Array} [arrays] The arrays to inspect.
|
||||
@@ -21,7 +20,7 @@ import last from './last.js';
|
||||
* var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];
|
||||
* var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];
|
||||
*
|
||||
* _.xorWith(objects, others, _.isEqual);
|
||||
* xorWith(objects, others, isEqual);
|
||||
* // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]
|
||||
*/
|
||||
function xorWith(...arrays) {
|
||||
|
||||
Reference in New Issue
Block a user