Skip to content

Instantly share code, notes, and snippets.

@zykadelic
Last active August 29, 2015 14:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save zykadelic/13ae10dec64d1fd59efe to your computer and use it in GitHub Desktop.
Save zykadelic/13ae10dec64d1fd59efe to your computer and use it in GitHub Desktop.
Cleans up the object from the given arguments
if(typeof Object.prototype.except !== 'function'){
Object.prototype.except = function(){
for(var i = 0, j = arguments.length; i < j; i++){
if(this.hasOwnProperty(arguments[i])){
delete this[arguments[i]];
}
}
return this;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment