code: function(array1, array2) {
              // make sure these are actually arrays
              if(!(array1 instanceof Array) || !(array2 instanceof Array)) {
                  return false;
              }
              if(array1 === array2) {
                  // true if they are the same object
                  return true;
              }
              if(array1.length !== array2.length) {
                  // false if they are different lengths
                  return false;
              }
              // false if any of their elements don't match
              for(var i = 0; i < array1.length; i++) {
                  if(array1[i] !== array2[i]) {
                      return false;
                  }
              }
              return true;
          }
docs: a simple utility method for comparing arrays, assumes one-dimensional arrays of primitives, performs strict comparisons