Created
July 24, 2008 00:44
-
-
Save maxterry/1968 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| self.eq = function(other) { | |
| // Is self equal to other? | |
| if (self.length !== other.length) return 0 | |
| var equal = 1 | |
| for (var i=0; i<self.length; i++) { | |
| if (self[i] !== other[i]) | |
| equal = 0 | |
| } | |
| return equal | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment