clarify documentation about sortedUniq (#3310)

clarify that sortedUniq only works on sorted arrays
This commit is contained in:
Nisse Bergman
2017-08-09 09:51:47 +02:00
committed by John-David Dalton
parent a0a3a6af91
commit 03e23ecc19

View File

@@ -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