Lista de diccionarios JavaScript
var list = ['Bob','Taylor','Mark','James']
var result = list.map(function(e) {
return {name: e}
})
console.log(result)
Undefined
var list = ['Bob','Taylor','Mark','James']
var result = list.map(function(e) {
return {name: e}
})
console.log(result)