Revision: 22354
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 10, 2010 18:04 by edektor
Initial Code
Array.prototype.remove = function(from, to) {
var rest = this.slice((to || from) + 1 || this.length);
this.length = from < 0 ? this.length + from : from;
return this.push.apply(this, rest);
};
Initial URL
Initial Description
remove and item or items from array
Initial Title
Array.prototype.remove
Initial Tags
javascript, js, array
Initial Language
JavaScript