Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
<script src="https://unpkg.com/@reactivex/rxjs@5.0.0-beta.7/dist/global/Rx.umd.js"></script>
</body>
</html>
 
let source1 = Rx.Observable.range(0, 5);
let source2 = Rx.Observable.from([0,1,2,3,4]);
let selectorFn = (source1, source2) => ({
    source1,
    source2
});
var source = Rx.Observable.zip(source1, source2, selectorFn);
var subscription = source.subscribe(console.log, console.error, () => console.log('complete!'));
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers