Skip to content

Commit 03e23ec

Browse files
Nisse Bergmanjdalton
authored andcommitted
clarify documentation about sortedUniq (#3310)
clarify that sortedUniq only works on sorted arrays
1 parent a0a3a6a commit 03e23ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sortedUniq.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
import baseSortedUniq from './.internal/baseSortedUniq.js'
22

33
/**
4-
* This method is like `uniq` except that it's designed and optimized
4+
* This method is like `uniq` except that it only works
55
* for sorted arrays.
6+
* If the input array is known to be sorted `sortedUniq` is
7+
* faster than `uniq`.
68
*
79
* @since 4.0.0
810
* @category Array

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy