Nutrient Web SDK

Function Set

Create a new immutable Set containing the values of the provided collection-like.

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

Function
Type Signature
Set<T>(
    collection?: Iterable<T, any, any> | ArrayLike<T>,
): NutrientViewer.Immutable.Set<T>