Lista map TypeScript do nowej listy obiektów
var result = arr.map(person => ({ value: person.id, text: person.name }));
console.log(result)
Fierce Flatworm
var result = arr.map(person => ({ value: person.id, text: person.name }));
console.log(result)
map array from one type to another jquery