Determines if all items in the given array are equal.
An empty array will return true.
true
areEqualItems([1, 1, 1]) // true with boolean typeareEqualItems([1, 2, 3]) // false with boolean typeareEqualItems([]) // true with literal type Copy
areEqualItems([1, 1, 1]) // true with boolean typeareEqualItems([1, 2, 3]) // false with boolean typeareEqualItems([]) // true with literal type
Determines if all items in the given array are equal.
An empty array will return
true
.Example