UNPKG

@bett3r-dev/flyd

Version:

The less is more, modular, functional reactive programming library

9 lines (7 loc) 225 B
var flyd = require('../../lib'); // Stream bool -> Stream a -> Stream a module.exports = flyd.curryN(2, function(sBool, sA) { return flyd.combine(function(sA, self) { if (sBool() !== false) self(sA()); }, [sA]); });