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

Function tickStep

src/ticks.js:51–55  ·  view source on GitHub ↗
(start, stop, count)

Source from the content-addressed store, hash-verified

49}
50
51export function tickStep(start, stop, count) {
52 stop = +stop, start = +start, count = +count;
53 const reverse = stop < start, inc = reverse ? tickIncrement(stop, start, count) : tickIncrement(start, stop, count);
54 return (reverse ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
55}

Callers 1

tickStep-test.jsFile · 0.90

Calls 1

tickIncrementFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…