Skip to content

Commit

Permalink
docs: example sort (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
ppeeou authored Sep 11, 2024
1 parent b4c950f commit e28b55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type ReturnValueType from "./types/ReturnValueType";
* @example
* ```ts
* sort((a, b) => a > b, [3, 4, 1, 2, 5, 2]); // [1, 2, 2, 3, 4, 5]
* sort((a, b) => a > b, 'bcdaef); // ["a", "b", "c", "d", "e", "f"]
* sort((a, b) => a.localeCompare(b), "bcdaef"); // ["a", "b", "c", "d", "e", "f"]
* ```
*/
// prettier-ignore
Expand Down

0 comments on commit e28b55e

Please sign in to comment.