Skip to content

Instantly share code, notes, and snippets.

@rcstr
Created November 28, 2013 14:39
Show Gist options
  • Save rcstr/7692919 to your computer and use it in GitHub Desktop.
Save rcstr/7692919 to your computer and use it in GitHub Desktop.
Array.prototype.diff = function(a) {
return this.filter(function(i) {return !(a.indexOf(i) > -1);});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment