Skip to content

Instantly share code, notes, and snippets.

@maxterry
Created July 24, 2008 00:44
Show Gist options
  • Select an option

  • Save maxterry/1968 to your computer and use it in GitHub Desktop.

Select an option

Save maxterry/1968 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