add comment

This commit is contained in:
Bruno Windels 2021-09-23 10:04:58 +02:00
parent 92dcc6c980
commit dd71fdbe08
1 changed files with 1 additions and 0 deletions

View File

@ -7,6 +7,7 @@ export function eventId(i: number): string {
return `$event${i}`;
}
/** `from` is included, `to` is excluded */
export function eventIds(from: number, to: number): string[] {
return [...Array(to-from).keys()].map(i => eventId(i + from));
}