Skip to content

Commit

Permalink
refactor: update uniq and uniqBy function docs to preserve the order …
Browse files Browse the repository at this point in the history
…of result values (#278)
  • Loading branch information
hg-pyun authored Jun 14, 2024
1 parent 18fc653 commit 1205191
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lazy/uniq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import uniqueBy from "./uniqBy";

/**
* Returns Iterable/AsyncIterable with duplicate values removed inside the given Iterable/AsyncIterable.
* Only primitive values can be compared.
* Only primitive values can be compared. The order of result values is determined by the order they occur in the array.
*
* @example
* ```ts
Expand Down
1 change: 1 addition & 0 deletions src/Lazy/uniqBy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import filter from "./filter";
/**
* Unlike {@link https://fxts.dev/docs/uniq | uniq} returns Iterable/AsyncIterable
* with duplicate values removed by applying with `f` inside the given Iterable/AsyncIterable.
* The order of result values is determined by the order they occur in the array.
*
* @example
* ```ts
Expand Down

0 comments on commit 1205191

Please sign in to comment.