I have an array like this:
language:
[
{added: "English"}
]
What I want to do is to remove the key added but I want to keep the value English in the same array.
The result I except:
language:
[
"English"
]
By far I have tried something like this:
for(let i in language) {
delete language[i].added
}
console.log(language)
This will remove the key and the value as well. How can I remove the key, but keep the value in the same array?