Interface ReadonlySetLike<T>

interface ReadonlySetLike<T> {
    size: number;
    has(value: T): boolean;
    keys(): Iterator<T, any, any>;
}

Type Parameters

  • T

Properties

Methods

Properties

size: number

the number of (unique) elements in the set-like.

Methods

  • Parameters

    • value: T

    Returns boolean

    a boolean indicating whether an element with the specified value exists in the set-like or not.

  • Despite its name, returns an iterator of the values in the set-like.

    Returns Iterator<T, any, any>