A JavaScript library for functional data transformation.
npm install foreword
- Ability to partially apply all functions, allowing you to write smaller, cleaner code.
- Restrict functions to one type of data.
- Leverage type separation into a more interesting interface, such as A.map and O.map.
- Provide useful functions for handling unwanted values.
- Ensure correctness of transformations, not allowing references to be mutated.
A benefit of this approach is that foreword
will have no trouble adding functions for new types in the future, like Map
or Set
.
Refer to the API documentation.