feat(jslib): ♻️ eav helper getters for uplisting
parent
3526a164fa
commit
318a7a941f
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue