Function toSet

  • Converts the existing iterable into a promise which resolves a Set.

    Type Parameters

    • TSource

      The type of elements in the source sequence.

    Parameters

    • source: Iterable<TSource>

      The iterable to convert into a set.

    Returns Set<TSource>

    A promise which contains a Set with all the elements from the iterable.

Generated using TypeDoc