Function asSet

  • Builds a set of the given element or array.

    Type Parameters

    • TElement

      Type of elements in the set.

    Parameters

    • elements: undefined | null | TElement | Iterable<TElement>

      Either element, iterable of elements, null, or undefined.

    Returns Set<TElement>

    A new set containing all the given elements, or empty set if elements is null or undefined.

Generated using TypeDoc