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