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

Function stream

docs/app/js/sanddance-app.js:107728–107730  ·  view source on GitHub ↗

* Creates a new event stream instance with the provided * (optional) filter, apply and receive functions. * @param {function(Object, number): boolean} [filter] - Filter predicate. * Events pass through when truthy, events are suppressed when falsy. * @param {function(Object): *} [apply] - Appl

(filter2, apply, receive)

Source from the content-addressed store, hash-verified

107726 * new event values.
107727 * @see EventStream
107728 */ function stream(filter2, apply, receive) {
107729 return new EventStream(filter2, apply, receive);
107730}
107731EventStream.prototype = {
107732 _filter: (0, _vegaUtil.truthy),
107733 _apply: (0, _vegaUtil.identity),

Callers 6

filterFunction · 0.70
applyFunction · 0.70
mergeFunction · 0.70
debounceFunction · 0.70
betweenFunction · 0.70
eventsFunction · 0.70

Calls 1

setMethod · 0.45

Tested by

no test coverage detected