Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- };
Advertisement
Add Comment
Please, Sign In to add comment