PLAYGROUND (experimental)

dict_append

Add or update keys in a dictionary
dict_append(
    map, 
    entries
)

Add or update keys in a dictionary

Syntaxe

var pt = {x:10, y:20};
pt = dict_append(pt, {z:5});
pt = dict_append(pt, {x:15, w:30});

Arguments

NameTypeRequiredDefaultDescription
mapyes-The original map or first key-value pair
entriesyes-The map entries to add/update