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