From 03e23ecc196d541f0ae9b4f2490a24e0161b69bb Mon Sep 17 00:00:00 2001 From: Nisse Bergman Date: Wed, 9 Aug 2017 09:51:47 +0200 Subject: [PATCH] clarify documentation about sortedUniq (#3310) clarify that sortedUniq only works on sorted arrays --- sortedUniq.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sortedUniq.js b/sortedUniq.js index 713f75ed6..6bad768c2 100644 --- a/sortedUniq.js +++ b/sortedUniq.js @@ -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