mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +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'
|
||||
|
||||
/**
|
||||
* 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.
|
||||
* If the input array is known to be sorted `sortedUniq` is
|
||||
* faster than `uniq`.
|
||||
*
|
||||
* @since 4.0.0
|
||||
* @category Array
|
||||
|
||||
Reference in New Issue
Block a user