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

Function newtuple

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

Source from the content-addressed store, hash-verified

5524 return (n.store && (n.data = new ru()), n);
5525 },
5526 newtuple(t, e) {
5527 const n = this._dnames,
5528 r = this._dims,
5529 i = r.length,
5530 o = {};
5531 for (let e = 0; e < i; ++e) o[n[e]] = r[e](t);
5532 return e ? ba(e.tuple, o) : va(o);
5533 },
5534 clean() {
5535 const t = this.value;
5536 for (const e in t) 0 === t[e].num && delete t[e];

Callers

nothing calls this directly

Calls 2

baFunction · 0.70
vaFunction · 0.70

Tested by

no test coverage detected