Guest User

Untitled

a guest
May 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Array.prototype.removeItem = function() {
  2. var what, a = arguments, L = a.length, ax;
  3. while (L && this.length) {
  4. what = a[--L];
  5. while ((ax = this.indexOf(what)) !== -1) {
  6. this.splice(ax, 1);
  7. }
  8. }
  9. return this;
  10. };
Add Comment
Please, Sign In to add comment