0.2.0 • Published 8 years ago

observ-trend v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

observ-trend

Observ value returning -1, 0, or 1 depending on the trend of another value

Installation

npm install observ-trend

Usage

var Trend = require('observ-trend');
var Value = require('observ');

var val = Value(1);
var trend = Trend(val);

trend(onChange);
console.log('Current trend: ', trend());

Contributing

npm run test

License

MIT

0.2.0

8 years ago

0.1.0

8 years ago