Answers for "typescript array of objects to map"

7

typescript map list to new list of objects

var result = arr.map(person => ({ value: person.id, text: person.name }));
console.log(result)
Posted by: Guest on April-11-2020

Code answers related to "typescript array of objects to map"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language