JSFiddle - React, Tailwind, and code Playground

by johntrepreneur

JavaScript

var b = ['a', 'b', 'c'].reduce((a, v) => ({ ...a, [v]: v}), {});


console.log(b);