14 lines
No EOL
334 B
TypeScript
14 lines
No EOL
334 B
TypeScript
import FunkyArray from "./FunkyArray";
|
|
import Match from "./Match";
|
|
|
|
export default class MatchArray extends FunkyArray<Match> {
|
|
public getById(id:number) : Match | undefined {
|
|
for (const match of this.getIterableItems()) {
|
|
if (match.matchId === id) {
|
|
return match;
|
|
}
|
|
}
|
|
|
|
return undefined;
|
|
}
|
|
} |