RxJS

Cycle.js

@MichalZalecki

RxJS = Observables + Operators + Schedulers

RxJS is async lodash

const arr = ["12", "0", "foo", "20", "bar", "120"];

arr
  .map(s => parseInt(s))
  .filter(n => !isNaN(n))
  .reduce((akk, n) => akk + n)
  // =>  152
const arr = ["12", "0", "foo", "20", "bar", "120"];

Rx.Observable.from(arr)
  .map(s => parseInt(s))
  .filter(n => !isNaN(n))
  .reduce((akk, n) => akk + n)
  // => ReduceObservable { ... }
  .subscribe(::console.log)
  // 152

Cycle.js - functional and reactive JavaScript framework

function main(sources) {
  const sinks = {};
  return sinks;
}

const drivers = {};

Cycle.run(main, drivers);

Cycle.run

Let's code!

rxjs-cyclejs

By Michał Załęcki

rxjs-cyclejs

  • 3,570