map an array to an object of items js code example
Example: typescript map list to new list of objects
var result = arr.map(person => ({ value: person.id, text: person.name }));
console.log(result)
var result = arr.map(person => ({ value: person.id, text: person.name }));
console.log(result)