Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/d3/d3-array
/ entries
Function
entries
test/rollup-test.js:58–64 ·
view source on GitHub ↗
(map, depth)
Source
from the content-addressed store, hash-verified
56
});
57
58
function
entries(map, depth) {
59
if
(depth > 0) {
60
return
Array.from(map, ([k, v]) => [k, entries(v, depth - 1)]);
61
}
else
{
62
return
map;
63
}
64
}
Callers
1
rollup-test.js
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected