Given the array:
var arr = [ "one", "two", "three" ];
Whats the cleanest way to convert it to:
{ "one": true, "two": true, "three": true }
I tried the following but I imagine there is a better way.
_.zipObject(arr || {}, _.fill([], true, 0, arr.length))