const arr:Array<string> = ['a','b','c'];
const res = arr.reduce((acc:{[key:string]:string},curr)=> (acc[curr]='',acc),{}); //or use acc:any
console.log(res)

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: