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

File utils.ts

examples/dashboard/src/editor/utils.ts:None–None  ·  view source on GitHub ↗

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

Callers

nothing calls this directly

Calls 1

getSystemFontsFunction · 0.70

Tested by

no test coverage detected