Edit This Page

allValuesSame()

Determines if all items are equal.

Returns

(boolean): value representing the equality of items.

Example

Enumerable
        .from([1, 1, 1])
        .allValuesSame();
// true