[{
"name": "employeeOne",
"age": 22,
"position": "UI",
"city": "Chennai"
},
{
"name": "employeeTwo",
"age": 23,
"position": "UI",
"city": "Bangalore"
}
]
If I remove the "Position" key and value from the JSON, the updated result will be:
[{
"name": "employeeOne",
"age": 22,
"city": "Chennai"
}, {
"name": "employeeTwo",
"age": 23,
"city": "Bangalore"
}]
Suppose we have a list of employees in a table and I want to delete only the position column for all employees. How can this be achieved using JavaScript and TypeScript?
I attempted:
const output = delete employee.position
but encountered an error.