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

Function constant

src/constant.js:1–3  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

1export default function constant(x) {
2 return () => x;
3}

Callers 1

binFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected