UNPKG

401 BTypeScriptView Raw
1import { Unsub } from "./types";
2/**
3 A shorthand for combining multiple
4 sources (streams, properties, constants) as array and assigning the
5 side-effect function f for the values. The following example would log
6 the number 3.
7
8 ```js
9 function f(a, b) { console.log(a + b) }
10 Bacon.onValues(Bacon.constant(1), Bacon.constant(2), f)
11 ```
12 */
13export default function onValues(...args: any[]): Unsub;