Skip to content

Instantly share code, notes, and snippets.

@dylanjha
Last active December 18, 2015 18:19
Show Gist options
  • Save dylanjha/5824835 to your computer and use it in GitHub Desktop.
Save dylanjha/5824835 to your computer and use it in GitHub Desktop.
Array.prototype.remove = function(o){
var i = this.indexOf(o)
, v = this[i];
this.splice(i, 1);
return v;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment