Function hasEqualItems

Determines if all items in the given array are equal.

An empty array will return true.

areEqualItems([1, 1, 1]) // true with boolean type
areEqualItems([1, 2, 3]) // false with boolean type
areEqualItems([]) // true with literal type