result = {};
arr.forEach(el => {result[el] = ''})
const result = arr.reduce((acc, el) => {acc[el] = ''}, {});
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array Array - JavaScript | MDN
Обсуждают сегодня