Use unique where applicable
This commit is contained in:
parent
773d14d2da
commit
395e2206e1
|
@ -172,15 +172,15 @@ export class MergedStolenDataEntry {
|
||||||
}
|
}
|
||||||
|
|
||||||
getNames(): string[] {
|
getNames(): string[] {
|
||||||
return Array.from(new Set(this.entries.map((e) => e.name)));
|
return unique(this.entries.map((e) => e.name));
|
||||||
}
|
}
|
||||||
|
|
||||||
getSources(): string[] {
|
getSources(): string[] {
|
||||||
return Array.from(new Set(this.entries.map((e) => e.source)));
|
return unique(this.entries.map((e) => e.source));
|
||||||
}
|
}
|
||||||
|
|
||||||
getValues() {
|
getValues() {
|
||||||
return Array.from(new Set(this.entries.map((e) => e.value)));
|
return unique(this.entries.map((e) => e.value));
|
||||||
}
|
}
|
||||||
|
|
||||||
getParsedValues(key_path: string) {
|
getParsedValues(key_path: string) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user