Is there a more succinct way of moving all array indices and values to an object than this:
arr = ["one","two","three"];
var rv = {};
for (var i = 0; i < arr.length; i++)
rv[i] = arr[i];
I know you can iterate over the array and add to a new object one by one, but I hate adding a loop to my code whenever I want to switch between the two, particularly when providing answers here on SO (note that this means making a function is out, because this would bloat an answer just as much).
PS: I don't mind if your answer is frowned upon or is a misuse of a language feature, JS hackery fascinates me anyway. :)