MCPcopy Create free account
hub / github.com/microsoft/SandDance / getField

Function getField

docs/app/js/sanddance-app.js:117604–117607  ·  view source on GitHub ↗
(_)

Source from the content-addressed store, hash-verified

117602 } else return Methods[m];
117603}
117604function getField(_) {
117605 const f = _.field;
117606 return (t)=>t ? f(t) : NaN;
117607}
117608(0, _vegaUtil.inherits)(Impute, (0, _vegaDataflow.Transform), {
117609 transform (_, pulse) {
117610 var out = pulse.fork(pulse.ALL), impute = getValue(_), field = getField(_), fName = (0, _vegaUtil.accessorName)(_.field), kName = (0, _vegaUtil.accessorName)(_.key), gNames = (_.groupby || []).map((0, _vegaUtil.accessorName)), groups = partition(pulse.source, _.groupby, _.key, _.keyvals), curr = [], prev = this.value, m = groups.domain.length, group, value, gVals, kVal, g, i, j, l, n, t;

Callers 1

transformFunction · 0.70

Calls 1

fFunction · 0.70

Tested by

no test coverage detected