Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
84
function
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
92
function
displayText(entry) {
93
return
entry.str || entry.id;
Callers
1
run
Function · 0.85
Calls
1
keyFor
Function · 0.85
Tested by
no test coverage detected