how to take away one laye of [] in js code example
Example 1: how to remove key value pair from object in javascript
delete object.keyname;
Example 2: how to delete object property of array javascript
array.forEach(function(v){ delete v.bad });
delete object.keyname;
array.forEach(function(v){ delete v.bad });