Attempting to perform object destructuring on the following:
{
name: "Bryan",
last-name: "Enid"
}
However, trying to destructure it like this is not successful:
const {name, last-name} = req.body
Is there an alternative method to destructure this object without altering the original key names?