If we have an array like this:
var arr = [ "one", "two", "three" ];
What is a more efficient method to convert it to:
{ "one": true, "two": true, "three": true }
I attempted the approach below, but I believe there could be a better solution.
_.zipObject(arr || {}, _.fill([], true, 0, arr.length))