[Solved] How to delete particular elements in a array of objects [closed]


var a = {name: 'pardeep', 'sirname': 'jain'}
delete a['name']
console.log(a);

Just use delete keyword for the key like this –

delete objectName['keyName']

solved How to delete particular elements in a array of objects [closed]