const createObj = (...a) => Object.fromEntries(a.map(v => [v, v])) const createObj = (...a) => (o => (a.forEach(v => o[v] = v), o))({})