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

Function wt

resources/vega.min.js:463–479  ·  view source on GitHub ↗
(t)

Source from the content-addressed store, hash-verified

461 return i ? (1 === i ? r : n + i * (r - n)) : n;
462 }
463 function wt(t) {
464 let e, n, r;
465 t = +t || 1e4;
466 const i = () => {
467 ((e = {}), (n = {}), (r = 0));
468 },
469 o = (i, o) => (++r > t && ((n = e), (e = {}), (r = 1)), (e[i] = o));
470 return (
471 i(),
472 {
473 clear: i,
474 has: (t) => ut(e, t) || ut(n, t),
475 get: (t) => (ut(e, t) ? e[t] : ut(n, t) ? o(t, n[t]) : void 0),
476 set: (t, n) => (ut(e, t) ? (e[t] = n) : o(t, n)),
477 }
478 );
479 }
480 function kt(t, e, n, r) {
481 const i = e.length,
482 o = n.length;

Callers 1

vega.min.jsFile · 0.70

Calls 3

iFunction · 0.70
utFunction · 0.70
oFunction · 0.70

Tested by

no test coverage detected