map
accepts
1 input stream,
a project function
project function and the resulting value is emittedreturns a new stream of projected values
â map and all the other reactive programming functions will never modify the input stream. Instead, they return a new stream. This principle is called immutability.
In the video example, ⏠isChecked is used as a project function. This function accepts events from checkable elements: checkboxes, radio buttons, options of a menu, toggles, etc. It returns â true if the element is checked, â false otherwise.
When an action is performed on the toggle (onâoff or offâon), a toggle event is emitted (read a stream of toggle events).

See also
Freelance Developer Advocate. Motion graphics with code. JavaScript and Elm. cedricsoulas.com
Receive my latest news, product updates and programming visualizations. You can unsubscribe at any time.