Coding Tips - JavaScript Convert Array To Object Convert Array To Object var x = [1,2,3]; var newObject = jQuery.extend(true, {}, x);