• Get a non-empty Set from a Set or array or object, returning undefined if the set would be empty.

    Type Parameters

    • T

    Parameters

    • Optional obj: T | Set<T> | T[]

      the array, Set, or singleton object to get as a Set

    Returns Set<T> | undefined

    the Set, or undefined

Generated using TypeDoc