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

Function kt

resources/vega.min.js:480–493  ·  view source on GitHub ↗
(t, e, n, r)

Source from the content-addressed store, hash-verified

478 );
479 }
480 function kt(t, e, n, r) {
481 const i = e.length,
482 o = n.length;
483 if (!o) return e;
484 if (!i) return n;
485 const a = r || new e.constructor(i + o);
486 let s = 0,
487 u = 0,
488 l = 0;
489 for (; s < i && u < o; ++l) a[l] = t(e[s], n[u]) > 0 ? n[u++] : e[s++];
490 for (; s < i; ++s, ++l) a[l] = e[s];
491 for (; u < o; ++u, ++l) a[l] = n[u];
492 return a;
493 }
494 function At(t, e) {
495 let n = "";
496 for (; --e >= 0; ) n += t;

Callers 1

suFunction · 0.85

Calls 1

tFunction · 0.70

Tested by

no test coverage detected