Handle DOM events as streams and keep your apps functional
Turns your event spaghetti into clean and declarative feng shui bacon, by switching from imperative to functional. It’s like replacing nested for-loops with functional programming concepts like map and filter. Stop working on individual events and work with event-streams instead. Transform your data with map and filter. Combine your data with merge and combine. Then switch to the heavier weapons and wield flatMap and combineTemplate like a boss. It’s the _ of Events. Too bad the symbol ~ is not allowed in Javascript.
Check it out at baconjs.github.io