// array splice Array.prototype.equals = function(arr) { if (this.length != arr.length) return false; for (var i=0;i