src/mapSet.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
export default <T extends any, U extends any>(fn: (a: T) => U) =>
  (set: Set<T>) =>
    new Set(Array.from(set).map(x => fn(x)))