self.eq = function(other) { // Is self equal to other? if (self.length !== other.length) return 0 var equal = 1 for (var i=0; i