Binato/server/objects/MatchArray.ts
2023-08-20 13:03:01 +01:00

14 lines
No EOL
332 B
TypeScript

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;
}
}