Replace valueEquals with nthEq

This commit is contained in:
Jon Staab
2023-11-13 11:58:29 -08:00
parent b23d69ff16
commit e38ee0a4e0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "paravel", "name": "paravel",
"version": "0.4.3", "version": "0.4.4",
"description": "Yet another toolkit for nostr", "description": "Yet another toolkit for nostr",
"author": "hodlbod", "author": "hodlbod",
"license": "MIT", "license": "MIT",
+1 -1
View File
@@ -140,7 +140,7 @@ export class Tags extends Fluent<string[]> {
return new Tags(events.flatMap(e => e.tags)) return new Tags(events.flatMap(e => e.tags))
} }
valueEquals = (v: string) => new Tags(this.xs.filter(t => t[1] === v)) nthEq = (i: number, v: string) => new Tags(this.xs.filter(t => t[i] === v))
values = (k?: string) => this.filter(t => !k || t[0] === k).pluck(1) values = (k?: string) => this.filter(t => !k || t[0] === k).pluck(1)