foreword
Version:
A JavaScript library for functional data transformation
24 lines (15 loc) • 1.11 kB
Markdown
# Foreword
A JavaScript library for functional data transformation.
[](https://travis-ci.org/abstract-tools/foreword)
[](https://badge.fury.io/js/foreword)
[](https://david-dm.org/abstract-tools/foreword)
`npm install foreword`
## Why 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](http://abstract.tools/foreword#array-map) and [O.map](http://abstract.tools/foreword#object-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`.
## Documentation
Refer to the [API documentation](http://abstract.tools/foreword).