merujuk nilai array di kunci objek js

// use square bracket to wrap the array/object reference
let myObj = {
  [myArr[0]]: 'Value'
};
shahul