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

Function indexes

src/group.js:39–41  ·  view source on GitHub ↗
(values, ...keys)

Source from the content-addressed store, hash-verified

37}
38
39export function indexes(values, ...keys) {
40 return nest(values, Array.from, unique, keys);
41}
42
43function unique(values) {
44 if (values.length !== 1) throw new Error("duplicate key");

Callers 1

index-test.jsFile · 0.90

Calls 1

nestFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…