array map returning string code example
Example 1: typescript map list to new list of objects
var result = arr.map(person => ({ value: person.id, text: person.name }));
console.log(result)
Example 2: map a property from array of objects javascript
var result = objArray.map(function(a) {return a.foo;});