code: function areArraysEqual(array1, array2)
  {
      if (!Array.isArray(array1) || !Array.isArray(array2))
      {
          return false;
      }
  
      if (array1.length !== array2.length)
      {
          return false;
      }
  
      for (let i = 0; i < array1.length; ++i)
      {
          if (array1[i] !== array2[i])
          {
              return false;
          }
      }
  
      return true;
  }
docs: Utility function to convert hexadecimal colors to strings, and simply return the color if it's a string.
  This version can also convert array of colors
  @private
  @param {Array} array1 First array to compare
  @param {Array} array2 Second array to compare
  @return {boolean} Do the arrays contain the same values in the same order