const kvArray = [ { key: 1, value: 10 }, { key: 2, value: 20 }, { key: 3, value: 30 }, ]; const reformattedArray = kvArray.map(({ key, value}) => ({ [key]: value })); can some one help me with this? when we need value from the Key we are using brackets[] but when we need the value from the value why are we not using brackets. what i know is when we need to get value we always use [].. please help.