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

Function flag

docs/app/js/sanddance-app.js:107483–107490  ·  view source on GitHub ↗
(bit)

Source from the content-addressed store, hash-verified

107481 if (params) this.parameters(params, react);
107482}
107483function flag(bit) {
107484 return function(state) {
107485 const f = this.flags;
107486 if (arguments.length === 0) return !!(f & bit);
107487 this.flags = state ? f | bit : f & ~bit;
107488 return this;
107489 };
107490}
107491Operator.prototype = {
107492 /**
107493 * Returns a list of target operators dependent on this operator.

Callers 1

sanddance-app.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected