D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
share
/
grafana
/
public
/
app
/
core
/
utils
/
Filename :
set.ts
back
Copy
export function mapSet<T, R>(set: Set<T>, callback: (t: T) => R): Set<R> { const newSet = new Set<R>(); for (const el of set) { newSet.add(callback(el)); } return newSet; }