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

Function arrayify

src/cross.js:9–11  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

7}
8
9function arrayify(values) {
10 return typeof values !== "object" || "length" in values ? values : Array.from(values);
11}
12
13function reducer(reduce) {
14 return values => reduce(...values);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…