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

Function entries

test/group-test.js:133–139  ·  view source on GitHub ↗
(map, depth)

Source from the content-addressed store, hash-verified

131});
132
133function entries(map, depth) {
134 if (depth > 0) {
135 return Array.from(map, ([k, v]) => [k, entries(v, depth - 1)]);
136 } else {
137 return map;
138 }
139}

Callers 1

group-test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected