I have an object as input, how can I return a modified object at the output based on an existing one?
I used Object.keys() for this in conjunction with the map() iterator ... But something doesn't work, I get unefined at the output
let objjjj = { a: 2, b: 3, c: 4 } console.log( Object.keys(objjjj).map((key, i) => { key: objjjj[key] + 1 } ) )