/ Published in: JavaScript
                    
                                        
use this script to step through an Array and strip out the specified value...
Normally "" - to remove blank data from the Array
                Normally "" - to remove blank data from the Array
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
Array.prototype.clean = function(deleteValue) {
for (var i = 0; i < this.length; i++) {
if (this[i] == deleteValue) {
this.splice(i, 1);
i--;
}
}
return this;
};
//usage
youArray = yourArray.clean("");
Comments
 Subscribe to comments
                    Subscribe to comments
                
                