Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
39
export
function
indexes(values, ...keys) {
40
return
nest(values, Array.from, unique, keys);
41
}
42
43
function
unique(values) {
44
if
(values.length !== 1) throw
new
Error(
"duplicate key"
);
Callers
1
index-test.js
File · 0.85
Calls
1
nest
Function · 0.85
Tested by
no test coverage detected