mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Clarify _.uniq docs on callback. [ci skip]
This commit is contained in:
10
lodash.js
10
lodash.js
@@ -3273,11 +3273,11 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a duplicate-value-free version of an array using strict equality
|
* Creates a duplicate-value-free version of an array using strict equality
|
||||||
* for comparisons, i.e. `===`. If the array is sorted, providing
|
* for comparisons, i.e. `===`. If the array is sorted, providing `true` for
|
||||||
* `true` for `isSorted` will use a faster algorithm. If a callback is provided
|
* `isSorted` will use a faster algorithm. If a callback is provided it will
|
||||||
* each element of `array` is passed through the callback before uniqueness
|
* be executed for each value in the array to generate the criterion by which
|
||||||
* is computed. The callback is bound to `thisArg` and invoked with three
|
* uniqueness is computed. The callback is bound to `thisArg` and invoked with
|
||||||
* arguments; (value, index, array).
|
* three arguments; (value, index, array).
|
||||||
*
|
*
|
||||||
* If a property name is provided for `callback` the created "_.pluck" style
|
* If a property name is provided for `callback` the created "_.pluck" style
|
||||||
* callback will return the property value of the given element.
|
* callback will return the property value of the given element.
|
||||||
|
|||||||
Reference in New Issue
Block a user