mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2024-06-01 19:47:47 -04:00
remove unused mapToObject function
This commit is contained in:
parent
90b477126d
commit
af863e4f19
|
@ -187,8 +187,4 @@ export function getValueFromHeaders(headers: IncomingHttpHeaders, key: string):
|
|||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
|
||||
export function mapToObject(map: Map<any, any>): object {
|
||||
return Object.fromEntries(Array.from(map.entries(), ([k, v]) => v instanceof Map ? [k, mapToObject(v)] : [k, v]));
|
||||
}
|
Loading…
Reference in a new issue