I hope I'm asking the right question.
I have an array like this:
var arr = [{item: 1}, {item: 2}, {item: 3}];
I need to convert it to an object collection that looks like this:
{item1: {item: 1}, item2:{item:2}, item3:{item:3}}
Is there an easy way to do this?