* 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)
| 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)); |
| 117871 | function update$2(_) { |
| 117872 | return this.value && !_.modified() ? this.value : (0, _vegaUtil.key)(_.fields, _.flat); |