Answers for "list of dictionaries javascript"

0

list of dictionaries javascript

var list = ['Bob','Taylor','Mark','James']
var result = list.map(function(e) {
  return {name: e}
})
console.log(result)
Posted by: Guest on July-19-2021

Code answers related to "list of dictionaries javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language