es6 map() array of objects 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 index
array.map((currentelement, index) => {
});
Example 3: map method
var yourArray= yourArray.map(Number);