Interface ReadonlySet<T>

    interface ReadonlySet<T> {
        size: number;
        "[iterator]"(): SetIterator<T>;
        entries(): SetIterator<[T, T]>;
        forEach(
            callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void,
            thisArg?: any,
        ): void;
        has(value: T): boolean;
        keys(): SetIterator<T>;
        values(): SetIterator<T>;
    }

    Type Parameters

    • T

    Properties

    size: number

    Methods

    • Parameters

      • callbackfn: (value: T, value2: T, set: ReadonlySet<T>) => void
      • OptionalthisArg: any

      Returns void

    • Parameters

      • value: T

      Returns boolean