Function fromKeys
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>
fromKeys<T>(iter: Collection<T, unknown>): NutrientViewer.Immutable.Set<T>
fromKeys(obj: { [key: string]: unknown }): NutrientViewer.Immutable.Set<string>
Type Declaration
Set.fromKeys()creates a new immutable Set containing the keys from this Collection or JavaScript Object.Type Declaration
Set.fromKeys()creates a new immutable Set containing the keys from this Collection or JavaScript Object.Type Declaration
Parameters
obj{ [key: string]: unknown }Returns
NutrientViewer.Immutable.Set<string>
Set.fromKeys()creates a new immutable Set containing the keys from this Collection or JavaScript Object.