6 lines
149 B
TypeScript
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())
|