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

Function Key

docs/app/js/sanddance-app.js:117867–117869  ·  view source on GitHub ↗

* Generates a key function. * @constructor * @param {object} params - The parameters for this operator. * @param {Array } params.fields - The field name(s) for the key function. * @param {boolean} params.flat - A boolean flag indicating if the field names * should be treated as flat pro

(params)

Source from the content-addressed store, hash-verified

117865 * should be treated as flat property names, side-stepping nested field
117866 * lookups normally indicated by dot or bracket notation.
117867 */ function Key(params) {
117868 (0, _vegaDataflow.Operator).call(this, null, update$2, params);
117869}
117870(0, _vegaUtil.inherits)(Key, (0, _vegaDataflow.Operator));
117871function update$2(_) {
117872 return this.value && !_.modified() ? this.value : (0, _vegaUtil.key)(_.fields, _.flat);

Callers 1

keyRefFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected