I have this JavaScript array:
[ \"124857202\", \"500255104\", \"78573M104\" ]
I want to convert this particular array into an array of obje
Use Array#map to convert each value into a different value:
var newArr = arr.map(function(value) { return {name: value}; });
Array#map applies the callback to each element in the array and returns a new array containing the return values of the callback.
Array#map