[Solved] remove keys that start with specific letter


try

result = result.map(function(obj){
  Object.keys(obj).forEach(function(key){
    key.indexOf("b") == 0 && delete obj[key];
  });
  return obj;
})

And to call it as result.letters instead of directly as result make the following modification

var letters = result.map(function(obj){
  Object.keys(obj).forEach(function(key){
    key.indexOf("b") == 0 && delete obj[key];
  });
  return obj;
});    
result = { letters: {}};
letters.forEach(function(obj){
  var keyName = Object.keys(obj)[0];
  result.letters[ keyName ] = obj[ keyName ];
});

5

solved remove keys that start with specific letter