DEV Community

Discussion on: Typical JavaScript interview exercises (explained)

Collapse
 
fpegels profile image
fpegels

const newHeroes = JSON.parse(JSON.stringify(heroes)).map(h => {
h.name = h.name.toUpperCase()
return h
})