forked from MapComplete/MapComplete
Fix opening hours input element
This commit is contained in:
parent
94f9a0de56
commit
64ec06bfc8
19 changed files with 643 additions and 599 deletions
8
Utils.ts
8
Utils.ts
|
@ -73,6 +73,14 @@ export class Utils {
|
|||
return res;
|
||||
}
|
||||
|
||||
public static TimesT<T>(count : number, f: ((i: number) => T)): T[] {
|
||||
let res : T[] = [];
|
||||
for (let i = 0; i < count; i++) {
|
||||
res .push(f(i));
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
static DoEvery(millis: number, f: (() => void)) {
|
||||
if (Utils.runningFromConsole) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue