• Similar to Collection(), but always returns a Collection.Set.

    Note: Collection.Set is a factory function and not a class, and does not use the new keyword during construction.

    Type Parameters

    • T

    Parameters

    • Optionalcollection: Iterable<T, any, any> | ArrayLike<T>

    Returns Collection.Set<T>