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>
  <script src="https://unpkg.com/rxjs@5.4.3/bundles/Rx.min.js"></script>
</head>
<body>
</body>
</html>
 
const Observable = Rx.Observable;
const Subject = Rx.Subject;
const sources = {
  'a': Observable.of(1),
  'b': Observable.of(42),
  'c': Observable.of(3),
};
const keys = Object.keys(sources);
console.log(keys);
Observable.forkJoin(Object.values(sources))
  .mergeMap(results => Observable.zip(results, keys))
  .subscribe();
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
martinsikpro
0viewers