DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
typescript map list to new list of objects
var result = arr.map(person => ({ value: person.id, text: person.name })); console.log(result)
PREVIOUS
NEXT
Tagged:
#typescript
#map
#list
#list
#objects
ADD COMMENT
Topic
COMMENT
Name
7+9 =
Submit