Answers for "typescript map list to new list of objects"

6

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 map list to new list of objects"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language