Thinking of Immutable.js as a tool for dealing strictly with IO data in your applications is easy. Indeed, this is a key role for the library. However, you can also leverage immutable collections to assist you with using a declarative programming style that leads to more maintainable code. In this chapter, you'll do the following:
- Using maps as the core mechanism to decide which behavior to execute
- Parameterizing behaviors and providing default behaviors
- Composing complex behaviors out of simple behaviors