Remove blank attributes from an Object in Javascript
<p>How do I remove all attributes which are undefined or null in a Javascript object?</p>

<p>(Question is similar to <a href="http://stackoverflow.com/questions/208105/how-to-remove-a-property-from-a-javascript-object">this one</a> for Arrays)</p>
