MCPcopy Create free account
hub / github.com/breck7/scroll / quantize$1

Function quantize$1

external/.d3.js:4025–4029  ·  view source on GitHub ↗
(interpolator, n)

Source from the content-addressed store, hash-verified

4023}
4024
4025function quantize$1(interpolator, n) {
4026 var samples = new Array(n);
4027 for (var i = 0; i < n; ++i) samples[i] = interpolator(i / (n - 1));
4028 return samples;
4029}
4030
4031var frame = 0, // is an animation frame pending?
4032 timeout$1 = 0, // is a timeout pending?

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected