You prepare a list to send to the insurance company. As you finish, you notice you misformatted it. Given an object with at least one key/value pair, convert all the values to numbers.
convertToNumber({ piano: "200" }) β { piano: 200 }
convertToNumber({ piano: "200", tv: "300" }) β { piano: 200, tv: 300 }
convertToNumber({ piano: "200", tv: "300", stereo: "400" }) β { piano: 200, tv: 300, stereo: 400 }
N/A