LoginSignup
6
5

More than 5 years have passed since last update.

RxJSのとても短いサンプル

Last updated at Posted at 2015-05-09

動作環境

  • Node.js v0.12.2
  • Babel.js 5.2.17

ソースコード

index.js
import Rx from 'rx'

Rx.Observable.from([1, 2, 3, 4])
  .subscribe(s => console.log(s));

準備

npm install -g babel
npm install rx

実行

babel-node index.js

結果

1
2
3
4

参考

6
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
5