set property of an object ts code example
Example: typescript dynamic key value object
interface LooseObject {
[key: string]: any
}
var obj: LooseObject = {};
interface LooseObject {
[key: string]: any
}
var obj: LooseObject = {};