MCPcopy Create free account
hub / github.com/alignoth/alignoth / Nh

Function Nh

resources/vega.min.js:9977–9989  ·  view source on GitHub ↗
(t, e)

Source from the content-addressed store, hash-verified

9975 var Bh = Th(Kf),
9976 zh = Th(eh);
9977 function Nh(t, e) {
9978 void 0 === e && ((e = t), (t = gh));
9979 for (
9980 var n = 0, r = e.length - 1, i = e[0], o = new Array(r < 0 ? 0 : r);
9981 n < r;
9982
9983 )
9984 o[n] = t(i, (i = e[++n]));
9985 return function (t) {
9986 var e = Math.max(0, Math.min(r - 1, Math.floor((t *= r))));
9987 return o[e](t - e);
9988 };
9989 }
9990 var Oh = Object.freeze({
9991 __proto__: null,
9992 interpolate: gh,

Callers 2

pFunction · 0.85
ypFunction · 0.85

Calls 1

tFunction · 0.70

Tested by

no test coverage detected