From 788935fd526b9ae8eb3e7d888f898ae15c3cae6e Mon Sep 17 00:00:00 2001 From: hg-pyun Date: Fri, 14 Jun 2024 14:19:48 +0900 Subject: [PATCH] refactor: update uniq and uniqBy function docs to preserve the order of result values --- src/Lazy/uniq.ts | 2 +- src/Lazy/uniqBy.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Lazy/uniq.ts b/src/Lazy/uniq.ts index 1008dc02..3c884da8 100644 --- a/src/Lazy/uniq.ts +++ b/src/Lazy/uniq.ts @@ -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 diff --git a/src/Lazy/uniqBy.ts b/src/Lazy/uniqBy.ts index aae2bf63..8cc82524 100644 --- a/src/Lazy/uniqBy.ts +++ b/src/Lazy/uniqBy.ts @@ -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