//*** This code is copyright 2004 by Gavin Kistner, !@phrogz.net //*** It is covered under the license viewable at http://phrogz.net/JS/_ReuseLicense.txt //*** Reuse or modification is free provided you abide by the terms of that license. //*** (Including the first two lines above in your source code mostly satisfies the conditions.) // Remove all occurrances of the specified element from the array. // If any argument is an array, does not recurse into that array. // Omit the parameter to remove all null values. // Returns the number of occurrances removed. Array.prototype.yank=function(e){ for (var i=0,len=this.length,ct=0;i