Wrap a listener to prevent multiple calls for identical values
$ npm install --save observ-thunk
var ObservThunk = require('observ-thunk')
var Observ = require('observ')
var observable = Observ()
observable(ObservThunk(function (value) {
console.log(value)
}))
observable.set(1)
observable.set(1)
observable.set(1)
//=> 1 (printed only once)
Required
Type: function
A function to run when the obserable's value is not strictly equal to the previous call.
MIT © Ben Drucker