typescript map list to new list of objects
var result = arr.map(person => ({ value: person.id, text: person.name })); console.log(result)
javascript map array of objects to another array
map array from one type to another jquery