MCPcopy Index your code
hub / github.com/ether/etherpad / mapToObject

Function mapToObject

src/node/hooks/express/adminsettings.ts:144–154  ·  view source on GitHub ↗
(map: Map<string, any>)

Source from the content-addressed store, hash-verified

142 const clientHooks: Map<string, Map<string, string>> = plugins.getHooks('client_hooks', false);
143
144 function mapToObject(map: Map<string, any>) {
145 let obj = Object.create(null);
146 for (let [k, v] of map) {
147 if (v instanceof Map) {
148 obj[k] = mapToObject(v);
149 } else {
150 obj[k] = v;
151 }
152 }
153 return obj;
154 }
155
156 socket.emit('reply:help', {
157 gitCommit,

Callers 1

adminsettings.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected