Ubah array objek ke objek tanpa nilai indeks

const array = [ 'one', 'two', 'three' ]
var res={}
array.forEach(function(a){
  res[a]=a
})
console.log(res)
Thankful Tarsier