typescript append to dictionary code example
Example: javascript add to a dictionary
var d = {}
for (var i in input) {
var datum = input[i];
d[datum.key] = datum.val
}
var d = {}
for (var i in input) {
var datum = input[i];
d[datum.key] = datum.val
}