Add missing languages

This commit is contained in:
Pieter Vander Vennet 2022-02-25 01:50:15 +01:00
parent 7e5d9fb720
commit 1dbef00fc0
2 changed files with 21 additions and 4 deletions

View file

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