Nutrient Web SDK

Function fromKeys

Set.fromKeys() creates a new immutable Set containing the keys from this Collection or JavaScript Object.

Function
Type Signature
fromKeys<T>(iter: Keyed<T, unknown>): NutrientViewer.Immutable.Set<T>
fromKeys<T>(iter: Collection<T, unknown>): NutrientViewer.Immutable.Set<T>
fromKeys(obj: { [key: string]: unknown }): NutrientViewer.Immutable.Set<string>
  • Type Declaration

    Type Parameters

    T

    Parameters

    iterKeyed<T, unknown>
  • Set.fromKeys() creates a new immutable Set containing the keys from this Collection or JavaScript Object.

    Type Declaration

    Type Parameters

    T

    Parameters

    iterCollection<T, unknown>
  • Set.fromKeys() creates a new immutable Set containing the keys from this Collection or JavaScript Object.

    Type Declaration

    Parameters

    obj{ [key: string]: unknown }