Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Array.prototype.removeItem = function() {
- var what, a = arguments, L = a.length, ax;
- while (L && this.length) {
- what = a[--L];
- while ((ax = this.indexOf(what)) !== -1) {
- this.splice(ax, 1);
- }
- }
- return this;
- };
Add Comment
Please, Sign In to add comment