Created
July 23, 2008 23:33
-
-
Save maxterry/1942 to your computer and use it in GitHub Desktop.
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
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