mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Remove references to _.
This commit is contained in:
@@ -4,13 +4,12 @@ import castArrayLikeObject from './_castArrayLikeObject.js';
|
||||
import last from './last.js';
|
||||
|
||||
/**
|
||||
* This method is like `_.intersection` except that it accepts `comparator`
|
||||
* This method is like `intersection` except that it accepts `comparator`
|
||||
* which is invoked to compare elements of `arrays`. The order and references
|
||||
* of result values are determined by the first array. 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 }];
|
||||
*
|
||||
* _.intersectionWith(objects, others, _.isEqual);
|
||||
* intersectionWith(objects, others, isEqual);
|
||||
* // => [{ 'x': 1, 'y': 2 }]
|
||||
*/
|
||||
function intersectionWith(...arrays) {
|
||||
|
||||
Reference in New Issue
Block a user