MCPcopy Create free account
hub / github.com/Easy-Editor/EasyEditor / formatMapFromESModule

Function formatMapFromESModule

examples/dashboard/src/editor/utils.ts:1–6  ·  view source on GitHub ↗
(map: Record<string, unknown>)

Source from the content-addressed store, hash-verified

1export const formatMapFromESModule = <T>(map: Record<string, unknown>) => {
2 return Object.keys(map).reduce<Record<string, T>>((result, key) => {
3 result[key] = map[key] as T
4 return result
5 }, {})
6}
7
8export const getSystemFonts = async () => {
9 try {

Callers

nothing calls this directly

Calls 1

reduceMethod · 0.80

Tested by

no test coverage detected