I have just started to working with bacon.js and trying to find out how does it work. On the following code asEventStream returns an eventStream and when in captures a blur event it emits a false value as I understand. What does the merge and toProperty do I can't get it from the code.
var blur = $(window).asEventStream('blur').map(function() {
return false;
});
var focus = $(window).asEventStream('focus').map(function() {
return true;
});
var focused = focus.merge(blur).toProperty(true);