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

Function su

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

Source from the content-addressed store, hash-verified

5585 Xa.call(this, null, t);
5586 }
5587 function su(t, e, n) {
5588 const r = t;
5589 let i = e || [],
5590 o = n || [],
5591 a = {},
5592 s = 0;
5593 return {
5594 add: (t) => o.push(t),
5595 remove: (t) => (a[r(t)] = ++s),
5596 size: () => i.length,
5597 data: (t, e) => (
5598 s && ((i = i.filter((t) => !a[r(t)])), (a = {}), (s = 0)),
5599 e && t && i.sort(t),
5600 o.length && ((i = t ? kt(t, i, o.sort(t)) : i.concat(o)), (o = [])),
5601 i
5602 ),
5603 };
5604 }
5605 function uu(t) {
5606 Xa.call(this, [], t);
5607 }

Callers 2

transformFunction · 0.70
groupFunction · 0.70

Calls 2

ktFunction · 0.85
rFunction · 0.70

Tested by

no test coverage detected