MCPcopy Create free account
hub / github.com/cheeaun/phanpy / buildMap

Function buildMap

scripts/diff-po.js:84–90  ·  view source on GitHub ↗
(entries)

Source from the content-addressed store, hash-verified

82}
83
84function buildMap(entries) {
85 const map = new Map();
86 for (const entry of entries) {
87 map.set(keyFor(entry), entry);
88 }
89 return map;
90}
91
92function displayText(entry) {
93 return entry.str || entry.id;

Callers 1

runFunction · 0.85

Calls 1

keyForFunction · 0.85

Tested by

no test coverage detected