• Copies all entries of a Set into a new Set

    Example

    copy([]) => []
    copy([1,2]) => [1,2]

    Returns

    a new Set containing all elements of the source Set

    Type Parameters

    • T

    Parameters

    Returns Set<T>

Generated using TypeDoc