DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
map add key to object in array javascript
const newArr = [ {name: 'eve'}, {name: 'john'}, {name: 'jane'} ].map(v => ({...v, isActive: true}))
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#map
#add
#key
#object
#array
#javascript
ADD COMMENT
Topic
COMMENT
Name
2+8 =
Submit