Skip to content

Commit 47390bb

Browse files
Zamiellc0sta
authored andcommitted
docs(eslint-plugin): [require-array-sort-compare] generalize sort method names (typescript-eslint#8062)
docs: streamline
1 parent 763e6bc commit 47390bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/eslint-plugin/docs/rules/require-array-sort-compare.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ For example, when sorting numbers, this results in a "10 before 2" order:
1515
[1, 2, 3, 10, 20, 30].sort(); //→ [1, 10, 2, 20, 3, 30]
1616
```
1717

18-
This rule reports on any call to the `Array#sort()` method that doesn't provide a `compare` argument.
18+
This rule reports on any call to the sort methods that do not provide a `compare` argument.
1919

2020
## Examples
2121

22-
This rule aims to ensure all calls of the native `Array#sort` method provide a `compareFunction`, while ignoring calls to user-defined `sort` methods.
22+
This rule aims to ensure all calls of the native sort methods provide a `compareFunction`, while ignoring calls to user-defined methods.
2323

2424
<!--tabs-->
2525

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