arrayValuesAreEqual (array) {
        'use strict'

        for (let i = 0; i < array.length - 1; ++i) {
            if (array[i] !== array[i + 1]) {
                return false
            }
        }

        return true
    }
Check if all items in an array are equal. Uses strict equality.

@param  {Array} array The array of values to check equality of.
@return {Boolean}       Whether the array's values are all equal or not.