title: Remove blank attributes from an Object in Javascript
body: <p>How do I remove all attributes which are <code>undefined</code> or <code>null</code> in a JavaScript object?</p>
  
  <p>(Question is similar to <a href="https://stackoverflow.com/questions/208105/how-to-remove-a-property-from-a-javascript-object">this one</a> for Arrays)</p>