JSFiddle - React, Tailwind, and code Playground by johntrepreneur December 17, 2022 JavaScript var b = ['a', 'b', 'c'].reduce((a, v) => ({ ...a, [v]: v}), {}); console.log(b);