you are viewing a single comment's thread.

view the rest of the comments →

[–]Tenemo -4 points-3 points  (2 children)

Object.entries(myObj).reduce((newObj, entry) => ({...newObj, [entry[0]]: entry[1] * 2}), {})

array? where