I have an array of strings, and I want to turn it into an object where each key is a word. I'm doing this:
let arr = ['a', 'b', 'c'];
let obj = {};
obj[...arr] = true;
However, it seems like this doesn't work :(
Does anyone know what I'm doing wrong?