remove element from a javascript objects code example
Example 1: nodejs delete object key
delete obj.firstname;
Example 2: how to delete object property of array javascript
array.forEach(function(v){ delete v.bad });
delete obj.firstname;
array.forEach(function(v){ delete v.bad });