Replace valueEquals with nthEq
This commit is contained in:
+1
-1
@@ -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
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user