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

Function Ee

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

Source from the content-addressed store, hash-verified

1320 }
1321 }
1322 function Ee(t, e) {
1323 let n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : ne;
1324 if ((r = t.length) && !isNaN((e = +e))) {
1325 if (e <= 0 || r < 2) return +n(t[0], 0, t);
1326 if (e >= 1) return +n(t[r - 1], r - 1, t);
1327 var r,
1328 i = (r - 1) * e,
1329 o = Math.floor(i),
1330 a = +n(t[o], o, t);
1331 return a + (+n(t[o + 1], o + 1, t) - a) * (i - o);
1332 }
1333 }
1334 function De(t, e) {
1335 return Me(t, 0.5, e);
1336 }

Callers 2

tsFunction · 0.70
oFunction · 0.70

Calls 1

nFunction · 0.70

Tested by

no test coverage detected