I was just wondering if there is a way to rename object key values with a symbol or a number as the new name. I know you can rename an object like this:
let totalValues = {3V: 2.09, fg%V: 3.02}
const {'3V': threev, 'fg%V': fgV } = totalValues;
totalValues = {threev, fgV };
is there a way to rename the values like this with it working?
let totalValues = {3V: 2.09, fg%V}
const {'3V': 3PM, 'fg%V': FG%} = totalValues;
totalValues = {3PM, FG%};