forked from MapComplete/MapComplete
Add missing languages
This commit is contained in:
parent
7e5d9fb720
commit
1dbef00fc0
2 changed files with 21 additions and 4 deletions
4
Utils.ts
4
Utils.ts
|
@ -779,11 +779,11 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
}
|
||||
|
||||
|
||||
public static MapToObj<T>(d : Map<string, T>, onValue: ((t:T) => any) = undefined): object{
|
||||
public static MapToObj<T>(d : Map<string, T>, onValue: ((t:T, key: string) => any) = undefined): object{
|
||||
const o = {}
|
||||
d.forEach((value, key) => {
|
||||
if(onValue !== undefined){
|
||||
value = onValue(value)
|
||||
value = onValue(value, key)
|
||||
}
|
||||
o[key] = value;
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue