feat(jslib): ♻️ eav helper getters for uplisting

feat/lang-upgrades-keys
Tomáš Mládek 2023-10-09 22:01:49 +02:00
parent 3526a164fa
commit 318a7a941f
1 changed files with 12 additions and 0 deletions

View File

@ -27,6 +27,18 @@ export class UpListing {
}
return this._objects[address];
}
public get entities(): string[] {
return Array.from(new Set(this.entries.map((e) => `@${e.entity}`)));
}
public get attributes(): string[] {
return Array.from(new Set(this.entries.map((e) => e.attribute)));
}
public get values(): IValue[] {
return Array.from(new Set(this.entries.map((e) => e.value)));
}
}
export class UpObject {