Daftar Kamus 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)