From 395e2206e166764264db36bec89f8513b8b75442 Mon Sep 17 00:00:00 2001 From: Kuba Orlik Date: Sun, 7 Nov 2021 17:53:29 +0100 Subject: [PATCH] Use unique where applicable --- stolen-data-entry.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stolen-data-entry.ts b/stolen-data-entry.ts index 7851907..a2ffd02 100644 --- a/stolen-data-entry.ts +++ b/stolen-data-entry.ts @@ -172,15 +172,15 @@ export class MergedStolenDataEntry { } getNames(): string[] { - return Array.from(new Set(this.entries.map((e) => e.name))); + return unique(this.entries.map((e) => e.name)); } getSources(): string[] { - return Array.from(new Set(this.entries.map((e) => e.source))); + return unique(this.entries.map((e) => e.source)); } getValues() { - return Array.from(new Set(this.entries.map((e) => e.value))); + return unique(this.entries.map((e) => e.value)); } getParsedValues(key_path: string) {