Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<script src="https://unpkg.com/@reactivex/rxjs@5.0.3/dist/global/Rx.js"></script>
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[RX] Base Observable">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/5.3.0/Rx.min.js"></script>
</head>
<body>
</body>
</html>
 
const stream = Rx.Observable.from([2, 4, 6, 8, 10, 12]);
stream
  .map(x => x * 2)
  .filter(x => x % 3 === 0)
  .skip(1)
  .subscribe(
    (x) => { console.log(x); },
    (err) => { console.error(err); },
    () => { console.log('Done 👍'); }
  );
Output 300px

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

Dismiss x
public
Bin info
Yago31pro
0viewers