I have this JavaScript array:
[ \"124857202\", \"500255104\", \"78573M104\" ]
I want to convert this particular array into an array of obje
I would take a look at the array.map function in javascript.
const mappedArr = arr.map(value => { return { name: value } })