We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 672f59e commit f95eedeCopy full SHA for f95eede
src/utils.ts
@@ -132,7 +132,7 @@ export function partitionByKeySingle<T>(
132
return out;
133
}
134
135
-/** Earlier items take precedence IF `getKey` is specified. */
+/** Deduplicates a list of items. Stable order of items after deduplication. */
136
export const dedupeList = <T, K>(arr: Array<T>, getKey?: (item: T) => K) => {
137
if (!getKey) {
138
return [...new Set(arr)];
0 commit comments