Array.prototype.clean >= 0.1.0
Purpose
Remove certain elements from an array
Syntax
							Array#clean
							(
								
									delete_value
								
							);
							
						
						
						
							
								Parameters
delete_value- The value to remove from the array
 
Return values
										Array
										
									
									The array is modified in place and returned
Examples
Remove all undefined variables from the array
var arr = [0,undefined,2,null,undefined,6];
a.clean();>>> [0, 2, null, 6]Remove all instances of the given parameter
var arr = [0,1,2,6,1,4,7,9,1];
arr.clean(1);>>> [0, 2, 6, 4, 7, 9]
Comments