1.1.4 • Published 7 years ago

rx-math v1.1.4

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

Reactive Math

Dependencies Status devDependency Status npm GitHub license Build Status

Helpers to write functional reactive calculators.

Installation

npm install --save rx-math

Basic Usage

This is an oversimplification of how one would actually use RxMath. In reality, the source Observables will come from a form input, data service, or perhaps even another RxMath calculation. It's likely that you'll also want to create a class to encapsulate a more complex calculation.

let x: Observable<number> = Observable.of(123);
let y: Observable<number> = Observable.of(456);

let average: Observable<number> = RxMath.average(x, y);

average.subscribe((val: number) => {
	console.log('Average is', val);
});

// outputs "Average is 289.5"
1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago