Daftar Peta TypeScript ke daftar objek baru
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