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
@@ -140,7 +140,7 @@ export class Tags extends Fluent<string[]> {
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)