Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

foreword

abstract-tools49MIT0.10.2

A JavaScript library for functional data transformation

javascript, library, utility, functional, array, maybe, number, object, string, data, transformation

readme

Foreword

A JavaScript library for functional data transformation.

Build Status npm version dependencies

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 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.

Documentation

Refer to the API documentation.