Auf einen Array -Wert in den Objektschlüssel JS verweisen
// use square bracket to wrap the array/object reference
let myObj = {
[myArr[0]]: 'Value'
};
shahul
// use square bracket to wrap the array/object reference
let myObj = {
[myArr[0]]: 'Value'
};