erratic-gate/src/common/lang/arrays/helpers/setToArray.ts

6 lines
149 B
TypeScript

/**
* Transforms a set into an array
*
* @param set The set to convert
*/
export const setToArray = <T>(set: Set<T>) => Array.from(set.values())