Binato/server/objects/MatchArray.ts

14 lines
331 B
TypeScript
Raw Normal View History

2022-11-23 00:48:28 +00:00
import { FunkyArray } from "./FunkyArray";
import { Match } from "./Match";
export class MatchArray extends FunkyArray<Match> {
public getById(id:number) : Match | undefined {
for (let match of this.getIterableItems()) {
if (match.matchId == id) {
return match;
}
}
return undefined;
}
}