Can anyone help me with this problem?
type A {
f1: string;
f2; string;
}
I have a variable that holds the name of a field:
let fieldName: string = "f2";
I want to create an object using the fieldName
:
{"content of fieldName": "sdf"}
Any suggestions on how to achieve this?