Deleting the keys in an array of object and checking its length
<pre><code>var uniqueProperties = [];    
for (var i = 0, length = obj.length; i &lt; length; i++) {
        for (var prop in obj[i]) {
            if (prop == null || prop == ' ') {
                delete obj[i][prop];
            }
        }
        for (var prop in obj[i]) {
            if (this.uniqueProperties.indexOf(prop) === -1) {
                this.uniqueProperties.push(prop);
            }
        }

    }
</code></pre>

<p>I want to first delete the keys with null or blank values, and then add them in the array and check its length. </p>

<p>I think its not getting deleted.</p>
