Skip to content

Instantly share code, notes, and snippets.

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