MCPcopy Create free account
hub / github.com/d3/d3-array / entries

Function entries

test/index-test.js:64–68  ·  view source on GitHub ↗
(map, depth)

Source from the content-addressed store, hash-verified

62});
63
64function entries(map, depth) {
65 return depth > 0
66 ? Array.from(map, ([k, v]) => [k, entries(v, depth - 1)])
67 : map;
68}

Callers 1

index-test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected