Answers for "how to map through object.keys"

0

how to map through object.keys

let newObj = Object.fromEntries(Object.entries(obj).map(([k, v]) => [k, v * v]));
Posted by: Guest on July-23-2021

Browse Popular Code Answers by Language