Home > @silence_zhpf/utils > HashSet > fromHashMap
此函数将 HashMap
转换为 TypeScript 中的 HashSet
。
Signature:
static fromHashMap<T, U>(map: HashMap<T, U>): HashSet<T>;
Parameter | Type | Description |
---|---|---|
map | HashMap<T, U> | HashMap 类的实例。 |
Returns:
HashSet<T>
HashSet 类的新实例,其中包含输入 HashMap 中的键。