Edit This Page

allEqualTo(item)

Determines if all items are equal to the given.

Arguments

  • item (any): item to compare.

Returns

(boolean): value representing the equality of items.

Example

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