mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
clarify documentation about sortedUniq (#3310)
clarify that sortedUniq only works on sorted arrays
This commit is contained in:
committed by
John-David Dalton
parent
a0a3a6af91
commit
03e23ecc19
@@ -1,8 +1,10 @@
|
|||||||
import baseSortedUniq from './.internal/baseSortedUniq.js'
|
import baseSortedUniq from './.internal/baseSortedUniq.js'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is like `uniq` except that it's designed and optimized
|
* This method is like `uniq` except that it only works
|
||||||
* for sorted arrays.
|
* for sorted arrays.
|
||||||
|
* If the input array is known to be sorted `sortedUniq` is
|
||||||
|
* faster than `uniq`.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
* @category Array
|
* @category Array
|
||||||
|
|||||||
Reference in New Issue
Block a user