Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
<script src="https://npmcdn.com/@reactivex/rxjs@5.0.0-alpha.8/dist/global/Rx.js"></script>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
</body>
</html>
 
const data = [
  [87, 86, 79, 31, 91],
  [13, 6, 50, 22, 39],
  [70, 73, 99, 94, 26],
  [80, 44, 24, 95, 34]
];
// Filter the items from each event and publish them one by one
console.log('>>>> Stream of filtered items');
Rx.Observable.fromArray(data)
  .map(list => {
    return list.filter(x => x > 50)
  })
  .mergeAll()
  .subscribe(x =>  console.log(x));
Output 300px

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

Dismiss x
public
Bin info
winkerVSbeckspro
0viewers