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

Function cross

resources/vega.min.js:5418–5439  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5416 );
5417 },
5418 cross() {
5419 const t = this,
5420 e = t.value,
5421 n = t._dnames,
5422 r = n.map(() => ({})),
5423 i = n.length;
5424 function o(t) {
5425 let e, o, a, s;
5426 for (e in t)
5427 for (a = t[e].tuple, o = 0; o < i; ++o) r[o][(s = a[n[o]])] = s;
5428 }
5429 (o(t._prev),
5430 o(e),
5431 (function o(a, s, u) {
5432 const l = n[u],
5433 c = r[u++];
5434 for (const n in c) {
5435 const r = a ? a + "|" + n : n;
5436 ((s[l] = c[n]), u < i ? o(r, s, u) : e[r] || t.cell(r, s));
5437 }
5438 })("", {}, 0));
5439 },
5440 init(t) {
5441 const e = (this._inputs = []),
5442 i = (this._outputs = []),

Callers

nothing calls this directly

Calls 2

oFunction · 0.70
mapMethod · 0.45

Tested by

no test coverage detected