Is there a more concise method to convert all array indices and values into an object than the following:
arr = ["one","two","three"];
var rv = {};
for (var i = 0; i < arr.length; i++)
rv[i] = arr[i];
I understand that you can iterate through the array and manually add each element to a new object, but I strongly dislike adding extra loops to my code whenever I need to make this switch, especially when giving solutions here on SO (and creating a function is not an option, as it would only add unnecessary bulk to an answer).
PS: Feel free to share any unconventional or frowned-upon approaches, since I find JavaScript hacks quite intriguing. :)