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

Function add

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

Source from the content-addressed store, hash-verified

5536 for (const e in t) 0 === t[e].num && delete t[e];
5537 },
5538 add(t) {
5539 const e = this.cellkey(t),
5540 n = this.cell(e, t);
5541 if (((n.num += 1), this._countOnly)) return;
5542 n.store && n.data.add(t);
5543 const r = n.agg;
5544 for (let e = 0, n = r.length; e < n; ++e) r[e].add(r[e].get(t), t);
5545 },
5546 rem(t) {
5547 const e = this.cellkey(t),
5548 n = this.cell(e, t);

Callers

nothing calls this directly

Calls 4

OBFunction · 0.85
addMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected