MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / list2map

Function list2map

flow-debugger/debugger-ui/src/parser.js:1–7  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

1function list2map(list) {
2 if (list) {
3 return Object.fromEntries(list.map((e) => [e.name, e]));
4 } else {
5 return {};
6 }
7}
8
9function isGraph(config, name) {
10 return config.graphs.hasOwnProperty(name);

Callers 2

translateGraphFunction · 0.85
translateConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected