I have an array which I would like to turn into an object with one twist. I would like to set each key and value of the object to be the value of the index of the array which I am currently on.
$('#MoveRight').click(function () {
var selectedUsers = $('#allUsersDD').val();
//turn to object
});
selectedUsers is an array