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

Function ct

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

Source from the content-addressed store, hash-verified

336 }
337 const lt = {};
338 function ct(t) {
339 let e,
340 n = {};
341 function r(t) {
342 return ut(n, t) && n[t] !== lt;
343 }
344 const i = {
345 size: 0,
346 empty: 0,
347 object: n,
348 has: r,
349 get: (t) => (r(t) ? n[t] : void 0),
350 set(t, e) {
351 return (r(t) || (++i.size, n[t] === lt && --i.empty), (n[t] = e), this);
352 },
353 delete(t) {
354 return (r(t) && (--i.size, ++i.empty, (n[t] = lt)), this);
355 },
356 clear() {
357 ((i.size = i.empty = 0), (i.object = n = {}));
358 },
359 test(t) {
360 return arguments.length ? ((e = t), i) : e;
361 },
362 clean() {
363 const t = {};
364 let r = 0;
365 for (const i in n) {
366 const o = n[i];
367 o === lt || (e && e(o)) || ((t[i] = o), ++r);
368 }
369 ((i.size = r), (i.empty = 0), (i.object = n = t));
370 },
371 };
372 return (
373 t &&
374 Object.keys(t).forEach((e) => {
375 i.set(e, t[e]);
376 }),
377 i
378 );
379 }
380 function ft(t, e, n, r, i, o) {
381 if (!n && 0 !== n) return o;
382 const a = +n;

Callers 5

EuFunction · 0.70
FuFunction · 0.70
alFunction · 0.70
transformFunction · 0.70
vega.min.jsFile · 0.70

Calls 2

rFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected