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

Function Nc

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

Source from the content-addressed store, hash-verified

8853 }
8854 const zc = Symbol("implicit");
8855 function Nc() {
8856 var t = new se(),
8857 e = [],
8858 n = [],
8859 r = zc;
8860 function i(i) {
8861 let o = t.get(i);
8862 if (void 0 === o) {
8863 if (r !== zc) return r;
8864 t.set(i, (o = e.push(i) - 1));
8865 }
8866 return n[o % n.length];
8867 }
8868 return (
8869 (i.domain = function (n) {
8870 if (!arguments.length) return e.slice();
8871 ((e = []), (t = new se()));
8872 for (const r of n) t.has(r) || t.set(r, e.push(r) - 1);
8873 return i;
8874 }),
8875 (i.range = function (t) {
8876 return arguments.length ? ((n = Array.from(t)), i) : n.slice();
8877 }),
8878 (i.unknown = function (t) {
8879 return arguments.length ? ((r = t), i) : r;
8880 }),
8881 (i.copy = function () {
8882 return Nc(e, n).unknown(r);
8883 }),
8884 Tc.apply(i, arguments),
8885 i
8886 );
8887 }
8888 function Oc(t, e, n) {
8889 ((t.prototype = e.prototype = n), (n.constructor = t));
8890 }

Callers 1

QdFunction · 0.70

Calls 3

hasMethod · 0.95
setMethod · 0.95
fromMethod · 0.45

Tested by

no test coverage detected