Created
September 30, 2017 18:07
-
-
Save robskidmore/74191686962d20930961643b85caee57 to your computer and use it in GitHub Desktop.
A quick diff array function for debugging in the console.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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