Type Parameters

  • T

Hierarchy

  • Set<T>
    • FluentSet

Implements

Constructors

  • Type Parameters

    • T

    Parameters

    • Optionalvalues: null | readonly T[]

    Returns FluentSet<T>

  • Type Parameters

    • T

    Parameters

    • Optionaliterable: null | Iterable<T, any, any>

    Returns FluentSet<T>

Properties

"[toStringTag]": string
size: number

the number of (unique) elements in Set.

"[species]": SetConstructor

Methods

  • Iterates over values in the set.

    Returns SetIterator<T>

  • Returns void

  • Removes a specified value from the Set.

    Parameters

    • ...values: T[]

    Returns boolean

    Returns true if an element in the Set existed and has been removed, or false if the element does not exist.

  • Returns an iterable of [v,v] pairs for every value v in the set.

    Returns SetIterator<[T, T]>

  • Executes a provided function once per each value in the Set object, in insertion order.

    Parameters

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

    Returns void

  • Parameters

    • value: T

    Returns boolean

    a boolean indicating whether an element with the specified value exists in the Set or not.

  • Despite its name, returns an iterable of the values in the set.

    Returns SetIterator<T>

  • Returns an iterable of values in the set.

    Returns SetIterator<T>

MMNEPVFCICPMFPCPTTAAATR