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

Method reduceFieldDef

resources/vega-lite.min.js:12140–12158  ·  view source on GitHub ↗
(e, n)

Source from the content-addressed store, hash-verified

12138 if (n) return ma(n, t);
12139 }
12140 reduceFieldDef(e, n) {
12141 return (function (e, n, i, r) {
12142 return e
12143 ? D(e).reduce((i, o) => {
12144 const a = e[o];
12145 return t.isArray(a)
12146 ? a.reduce((e, t) => n.call(r, e, t, o), i)
12147 : n.call(r, i, a, o);
12148 }, i)
12149 : i;
12150 })(
12151 this.getMapping(),
12152 (t, n, i) => {
12153 const r = wa(n);
12154 return r ? e(t, r, i) : t;
12155 },
12156 n,
12157 );
12158 }
12159 forEachFieldDef(e, t) {
12160 Qa(
12161 this.getMapping(),

Callers 3

makeFromEncodingMethod · 0.80
makeFromEncodingMethod · 0.80
makeMethod · 0.80

Calls 4

DFunction · 0.85
eFunction · 0.85
waFunction · 0.70
getMappingMethod · 0.45

Tested by

no test coverage detected