MCPcopy Create free account
hub / github.com/breck7/scroll / genericArray

Function genericArray

external/.d3.js:3611–3625  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

3609}
3610
3611function genericArray(a, b) {
3612 var nb = b ? b.length : 0,
3613 na = a ? Math.min(nb, a.length) : 0,
3614 x = new Array(na),
3615 c = new Array(nb),
3616 i;
3617
3618 for (i = 0; i < na; ++i) x[i] = interpolate$2(a[i], b[i]);
3619 for (; i < nb; ++i) c[i] = b[i];
3620
3621 return function(t) {
3622 for (i = 0; i < na; ++i) c[i] = x[i](t);
3623 return c;
3624 };
3625}
3626
3627function date$1(a, b) {
3628 var d = new Date;

Callers

nothing calls this directly

Calls 2

interpolate$2Function · 0.85
minMethod · 0.80

Tested by

no test coverage detected