MCPcopy
hub / github.com/microsoft/SandDance / modify

Function modify

docs/app/js/sanddance-app.js:107294–107307  ·  view source on GitHub ↗
(t, field, value)

Source from the content-addressed store, hash-verified

107292 return this;
107293 },
107294 modify (t, field, value) {
107295 const m = {
107296 field: field,
107297 value: (0, _vegaUtil.constant)(value)
107298 };
107299 if ((0, _vegaUtil.isFunction)(t)) {
107300 m.filter = t;
107301 modp.push(m);
107302 } else {
107303 m.tuple = t;
107304 mod.push(m);
107305 }
107306 return this;
107307 },
107308 encode (t, set) {
107309 if ((0, _vegaUtil.isFunction)(t)) modp.push({
107310 filter: t,

Callers 1

pulseFunction · 0.70

Calls 5

vFunction · 0.85
tupleidFunction · 0.70
removePredicateFunction · 0.70
runMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected