MCPcopy Index your code
hub / github.com/microsoft/SandDance / Field

Function Field

docs/app/js/sanddance-app.js:117274–117276  ·  view source on GitHub ↗

* Generates one or more field accessor functions. * If the 'name' parameter is an array, an array of field accessors * will be created and the 'as' parameter will be ignored. * @constructor * @param {object} params - The parameters for this operator. * @param {string} params.name - The field na

(params)

Source from the content-addressed store, hash-verified

117272 * @param {string} params.name - The field name(s) to access.
117273 * @param {string} params.as - The accessor function name.
117274 */ function Field(params) {
117275 (0, _vegaDataflow.Operator).call(this, null, update$3, params);
117276}
117277(0, _vegaUtil.inherits)(Field, (0, _vegaDataflow.Operator));
117278function update$3(_) {
117279 return this.value && !_.modified() ? this.value : (0, _vegaUtil.isArray)(_.name) ? (0, _vegaUtil.array)(_.name).map((f)=>(0, _vegaUtil.field)(f)) : (0, _vegaUtil.field)(_.name, _.as);

Callers 1

fieldRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected