I have an array of objects where I want to rename the key name as shown:
let Options = [{Code: 1, Label: 'abc'}, {Code: 2, Label: 'xyz'}, {Code: 3, Label: 'fgh'}];
I want to change the key 'Code' to 'value' as shown:
let Options = [{value: 1, Label: 'abc'}, {value: 2, Label: 'xyz'}, {value: 3, Label: 'fgh'}];
How I can accomplish the desired output.